The description of std::is_void
states that:
Provides the member constant value that is equal to true, if T is the type void, const void, volatile void, or const volatile void.
Then what could be const void
, or a volatile void
?
This answer states that const void
return type would be invalid (however compiles on VC++ 2015)
const void foo() { }
If by standard, const void
is invalid (VC being wrong) - then what is const void
?
void
withoutconst
". – Intrusivevoid
– Metameric