April 10, 2003 Help | ||||
---|---|---|---|---|
| ||||
How can I get <bitset> to_string() to work? Thanks, Jordon Hirshon |
July 20, 2005 Re: Help | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jordon Hirshon | 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 |
Copyright © 1999-2021 by the D Language Foundation