diff --git a/src/containers.hh b/src/containers.hh index e37208dc7..74f5691bc 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)}}; }