Commit a9172a17 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-a/3361-compilation-error' into 'dev'

algo/core/filter: typedef function<> doesn't seem portable

Closes #3361

See merge request !248
parents eb9ceaa0 37498fd6
Pipeline #32757 canceled with stages
......@@ -98,6 +98,7 @@ BioReader FilterWithACAutomaton::filterBioReaderWithACAutomaton(
sorted map */
}else{
/* sort map */
using Comparator = bool (*) (pair<KmerAffect, int>, pair<KmerAffect, int>);
Comparator compFunctor = [](pair<KmerAffect, int> elem1 ,pair<KmerAffect, int> elem2){
return (elem1.second == elem2.second) ? elem1.first > elem2.first : elem1.second > elem2.second;
};
......
......@@ -3,8 +3,6 @@
#include "bioreader.hpp"
#include "automaton.hpp"
typedef function<bool(pair<KmerAffect, int>, pair<KmerAffect, int>)> Comparator;
class FilterWithACAutomaton {
private:
......
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