mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
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>
|
||||
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)}}; }
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user