Add missing curly braces in containers helpers
This commit is contained in:
parent
9e15181dc9
commit
eea75c6daf
|
@ -105,7 +105,7 @@ struct FilterFactory
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Filter>
|
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>
|
template<typename I, typename T>
|
||||||
using TransformedResult = decltype(std::declval<T>()(*std::declval<I>()));
|
using TransformedResult = decltype(std::declval<T>()(*std::declval<I>()));
|
||||||
|
@ -163,7 +163,7 @@ struct TransformFactory
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Transform>
|
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)}}; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user