From eea75c6daf1dbf2f50ec7f775127021e19d49904 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Mar 2016 23:22:32 +0000 Subject: [PATCH] Add missing curly braces in containers helpers --- src/containers.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers.hh b/src/containers.hh index e37208dc..74f5691b 100644 --- a/src/containers.hh +++ b/src/containers.hh @@ -105,7 +105,7 @@ struct FilterFactory }; template -inline ContainerView> filter(Filter f) { return {std::move(f)}; } +inline ContainerView> filter(Filter f) { return {{std::move(f)}}; } template using TransformedResult = decltype(std::declval()(*std::declval())); @@ -163,7 +163,7 @@ struct TransformFactory }; template -inline ContainerView> transform(Transform t) { return {std::move(t)}; } +inline ContainerView> transform(Transform t) { return {{std::move(t)}}; }