Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using x = char;
- constexpr int f (unsigned x)
- {
- return 0;
- }
- constexpr int f (signed x)
- {
- return 1;
- }
- int main ()
- {
- constexpr auto z1 = f ((unsigned char) 'a');
- constexpr auto z2 = f ((signed char) 'a');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment