Should leaf::result::value_type be public?
Snarpix opened this issue · comments
Snarpix commented
Currently I have to use
std::remove_reference_t<decltype(std::declval<Result>().value())>
which is not ideal.
Emil Dotchevski commented
result<int &>::value_type
is int
. Would this be correct in your use case, or should it be int &
?
Snarpix commented
It should be int&, exactly as type parameter of result template.
In my workaround it will be handled incorrectly, because I don't care about cv/ref.