Add missing curly braces in containers helpers

This commit is contained in:
Maxime Coste 2016-03-08 23:22:32 +00:00
parent 9e15181dc9
commit eea75c6daf

View File

@ -105,7 +105,7 @@ struct FilterFactory
};
template<typename Filter>
inline ContainerView<FilterFactory<Filter>> filter(Filter f) { return {std::move(f)}; }
inline ContainerView<FilterFactory<Filter>> filter(Filter f) { return {{std::move(f)}}; }
template<typename I, typename T>
using TransformedResult = decltype(std::declval<T>()(*std::declval<I>()));
@ -163,7 +163,7 @@ struct TransformFactory
};
template<typename Transform>
inline ContainerView<TransformFactory<Transform>> transform(Transform t) { return {std::move(t)}; }
inline ContainerView<TransformFactory<Transform>> transform(Transform t) { return {{std::move(t)}}; }