If std::false_type
is a type, what is the valid value for this type?
If I just want to implement a function like below whose return type is std::false_type
, how could I achieve this?
typename std::false_type operator()(){
return declval<std::false_type>();
}
Try return std::false_type{};
or return {};
as suggested in the comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With