Visual studio c ++ why not compile 0b00000001

I am trying to port a small program that I originally made for Linux. The only thing that now causes an error - a any binary number written as follows: 0b01010101.

I cannot find any information on why this does not work on Windows or how I can make it work with windows.

Is this not standard in C ++?

+4
source share
1 answer

This will not work at present.

This will be the new C ++ 14 feature . Numeric literals in C ++ 14 can be specified in binary form. The syntax uses the 0bor prefixes 0b.

+5

Source: https://habr.com/ru/post/1532179/


All Articles