Commit 37498fd6 authored by Mikaël Salson's avatar Mikaël Salson

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

Was working on g++ 5 or 6 but not seven or 8.
Using using seems a good alternative.

Fix #3361
parent eb9ceaa0
Pipeline #32753 failed with stages
in 32 minutes and 35 seconds
......@@ -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:
......
  • En tout cas la nouvelle syntaxe passe aussi bien sur mon clang-800.0.42.1.

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