Commit 4a9f7378 authored by Mikaël Salson's avatar Mikaël Salson

CountKmerAffectAnalyser: count() must be put again in the class even if it just calls the parent.

The reason for me is not clear. It is probably due to the fact that there
already exists a count() method taking one parameter and because of the
ambiguity the compiler thinks we forgot a parameter.
parent 03ada236
......@@ -140,6 +140,8 @@ class CountKmerAffectAnalyser: public KmerAffectAnalyser<T> {
CountKmerAffectAnalyser(IKmerStore<T> &kms, const string &seq);
~CountKmerAffectAnalyser();
int count() const;
/**
* @complexity constant time
*/
......@@ -293,6 +295,11 @@ CountKmerAffectAnalyser<T>::~CountKmerAffectAnalyser() {
}
}
template <class T>
int CountKmerAffectAnalyser<T>::count() const {
return KmerAffectAnalyser<T>::count();
}
template <class T>
int CountKmerAffectAnalyser<T>::count(const T &affect) const {
if (counts.count(affect) == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment