4

I am trying to port a small program I initially made for Linux, The only thing that gives me a error now is any binary numbers written like this 0b01010101.

I can't find any information on why this does not work on windows or how I could get it to work on windows.

Is this not standard in c++?

herohuyongtao
  • 47,739
  • 25
  • 124
  • 164
lasvig
  • 151
  • 4
  • 13

1 Answers1

5

Currently, this will not work.

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

Lightness Races in Orbit
  • 369,052
  • 73
  • 620
  • 1,021
herohuyongtao
  • 47,739
  • 25
  • 124
  • 164