Is there anything in boost libraries like binary? For example I would like to write:
binary<10101> a;
I’m ashamed to admit that I’ve tried to find it (Google, Boost) but no results. They’re mention something about binary_int<> but I couldn’t find neither if it is available nor what header file shall I include;
Thanks for help.
There is the
BOOST_BINARYmacro. used like thisTo go with your example:
Once some compiler supports C++0x’s user defined literals, you could write