| 144 | |
| 145 | template <typename T> |
| 146 | void ConstCastTestT() |
| 147 | { |
| 148 | static const bool b = ConstSafeInt<T>(); |
| 149 | static const wchar_t w = ConstSafeInt<T>(); |
| 150 | static const char c = ConstSafeInt<T>(); |
| 151 | static const signed char sc = ConstSafeInt<T>(); |
| 152 | static const unsigned char uc = ConstSafeInt<T>(); |
| 153 | static const signed short s = ConstSafeInt<T>(); |
| 154 | static const unsigned short us = ConstSafeInt<T>(); |
| 155 | static const signed int i = ConstSafeInt<T>(); |
| 156 | static const unsigned int ui = ConstSafeInt<T>(); |
| 157 | static const signed long l = ConstSafeInt<T>(); |
| 158 | static const unsigned long ul = ConstSafeInt<T>(); |
| 159 | static const signed long long ll = ConstSafeInt<T>(); |
| 160 | static const unsigned long long ull = ConstSafeInt<T>(); |
| 161 | static const size_t st = ConstSafeInt<T>(); |
| 162 | static const ptrdiff_t pt = ConstSafeInt<T>(); |
| 163 | |
| 164 | // Also catch the useless unary + operator |
| 165 | static const int pl = +ConstSafeInt<T>(); |
| 166 | } |
| 167 | |
| 168 | #if CPLUSPLUS_STD == CPLUSPLUS_14 |
| 169 | template <typename T, typename U> |
nothing calls this directly
no outgoing calls
no test coverage detected