On 01/30/2015 01:13 PM, Ville Voutilainen wrote:
Why would void *const volatile still be trivial?Arrrrggggh. It isn't. YES and YES2 are macros, so YES2(void*) expands to is_trivial<const volatile void*>::value, which is true, whereas is_trivial<void* const volatile>::value is false. I think it would be reasonable to convert these macros in that test into function templates, no? :)
Makes sense to me. :) Jason