Namespaces
Variants
Views
Actions

Talk:cpp/types/make unsigned

From cppreference.com

So is using make_unsigned<bool> undefined behavior? And what is the unsigned type corresponding to an enumeration type? 85.18.102.222 03:14, 14 June 2017 (PDT)

Yes, it's UB to make_unsigned<bool> because it directly violates a Requires: clause in meta.trans.sign --Cubbi (talk) 06:18, 14 June 2017 (PDT)