//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // type_traits // make_unsigned #include enum Enum {zero, one_}; enum BigEnum { bzero, big = 0xFFFFFFFFFFFFFFFFULL }; int main() { static_assert((std::is_same::type, unsigned char>::value), ""); static_assert((std::is_same::type, unsigned char>::value), ""); static_assert((std::is_same::type, unsigned char>::value), ""); static_assert((std::is_same::type, unsigned short>::value), ""); static_assert((std::is_same::type, unsigned short>::value), ""); static_assert((std::is_same::type, unsigned int>::value), ""); static_assert((std::is_same::type, unsigned int>::value), ""); static_assert((std::is_same::type, unsigned long>::value), ""); static_assert((std::is_same::type, unsigned long>::value), ""); static_assert((std::is_same::type, unsigned long long>::value), ""); static_assert((std::is_same::type, unsigned long long>::value), ""); static_assert((std::is_same::type, unsigned int>::value), ""); static_assert((std::is_same::type, const unsigned int>::value), ""); static_assert((std::is_same::type, const unsigned int>::value), ""); static_assert((std::is_same::type, std::conditional::type>::value), ""); }