www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Help

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

Thanks,
Jordon Hirshon
Apr 10 2003
↑ ↓ → 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