April 10, 2003
How can I get <bitset> to_string() to work?

Thanks,
Jordon Hirshon


July 20, 2005
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