Skip to content
Snippets Groups Projects
Commit f33e8d19 authored by Christoph Hasse's avatar Christoph Hasse :cartwheel_tone1:
Browse files

fix(functors) introduce Functors::Optional<T>::value_type

parent 85d3779f
No related branches found
No related tags found
1 merge request!2977feat(functors) implement automatic wrapping/unwrapping of optional returns from functor
Pipeline #4159733 passed
...@@ -26,6 +26,8 @@ namespace Functors { ...@@ -26,6 +26,8 @@ namespace Functors {
*/ */
template <typename T> template <typename T>
struct Optional { struct Optional {
using value_type = T;
Optional() = default; Optional() = default;
Optional( std::nullopt_t /*unused*/ ){}; Optional( std::nullopt_t /*unused*/ ){};
template <typename U = T, template <typename U = T,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment