From e125cbe4fe1d25ec43bc6a7242dcd6debfef37fd Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 1 Nov 2022 11:39:09 +0100 Subject: [PATCH] Added namespace prefixes --- functools.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }