Home | Info | Community | Development | myReactOS | Contact Us
[protected]
Definition at line 78 of file bitset_test.cpp.
{ #if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS) { stringstream sstr; bitset<13U> b(0x1111); sstr << b; CPPUNIT_ASSERT( sstr.str() == "1000100010001" ); bitset<13U> b1; sstr >> b1; CPPUNIT_ASSERT( b1.test(0) ); CPPUNIT_ASSERT( b1.test(4) ); CPPUNIT_ASSERT( b1.test(8) ); CPPUNIT_ASSERT( b1.test(12) ); } # if !defined (STLPORT) || !defined (_STLP_NO_WCHAR_T) { wstringstream sstr; bitset<13U> b(0x1111); sstr << b; CPPUNIT_ASSERT( sstr.str() == L"1000100010001" ); bitset<13U> b1; sstr >> b1; CPPUNIT_ASSERT( b1.test(0) ); CPPUNIT_ASSERT( b1.test(4) ); CPPUNIT_ASSERT( b1.test(8) ); CPPUNIT_ASSERT( b1.test(12) ); } # endif #endif }