www.digitalmars.com         C & C++   DMDScript  

c++ - Help

reply "Jordon Hirshon" <j.hirshon worldnet.att.net> writes:
How can I get <bitset> to_string() to work?

Thanks,
Jordon Hirshon
Apr 10 2003
parent mikeut66 yahoo.com writes:
In article <b74fsk$2ua7$1 digitaldaemon.com>, Jordon Hirshon says...
How can I get <bitset> to_string() to work?

Thanks,
Jordon Hirshon

All template parameters must be included. An example: #include <iostream> #include <string> #include <bitset> int main() { std::bitset<32> b(3); std::cout << b.to_string<char, std::char_traits<char>, std::allocator<char> >() << '\n'; } Anon
Jul 20 2005