diff --git a/functools.hpp b/functools.hpp index 0843024..3c487ff 100644 --- a/functools.hpp +++ b/functools.hpp @@ -21,14 +21,14 @@ namespace sc { template std::vector map(const std::vector& seq, std::function fun) { std::vector result; - std::transform(seq.begin(), seq.end(), back_inserter(result), fun); + std::transform(seq.begin(), seq.end(), std::back_inserter(result), fun); return result; } template std::vector filter(const std::vector& seq, std::function fun) { std::vector result; - std::copy_if(seq.begin(), seq.end(), back_inserter(result), fun); + std::copy_if(seq.begin(), seq.end(), std::back_inserter(result), fun); return result; }