Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
-
all
Description
Moved from the Rogue Wave bug tracking database:
***Created By: sebor @ Dec 29, 2003 12:24:19 PM***
The well-formed program below fails to compile with libstd 3.1.1.
#include <iomanip>
#include <iostream>
#include <sstream>
struct Traits: std::char_traits<char> { };
int main ()
{
std::basic_ostringstream<char, Traits> strm;
strm << std::setfill ('_');
strm.width (2);
strm << '#';
std::cout << strm.str ().c_str () << '\n';
}
u.cpp: In function `int main()':
u.cpp:11: no match for `std::basic_ostringstream<char,Traits,std::allocator<char> > & << std::__rw_basic_ios_manip<char,std::char_traits<char> >'
${TOPDIR}/include/ostream:120: candidates are: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(std::basic_ostream<char,Traits> & (std::basic_ostream<char,Traits> &))
${TOPDIR}/include/ostream:125: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(std::ios_base & (std::ios_base &))
${TOPDIR}/include/ostream:130: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(std::basic_ios<char,Traits> & (std::basic_ios<char,Traits> &))
${TOPDIR}/include/ostream:138: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(bool)
${TOPDIR}/include/ostream:258: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(short int)
${TOPDIR}/include/ostream:146: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(short unsigned int)
${TOPDIR}/include/ostream:274: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(int)
${TOPDIR}/include/ostream:152: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(unsigned int)
${TOPDIR}/include/ostream:156: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(long int)
${TOPDIR}/include/ostream:160: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(long unsigned int)
${TOPDIR}/include/ostream:164: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(float)
${TOPDIR}/include/ostream:168: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(double)
${TOPDIR}/include/ostream:172: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(long double)
${TOPDIR}/include/ostream:179: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(long long unsigned int)
${TOPDIR}/include/ostream:184: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(long long int)
${TOPDIR}/include/ostream:190: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(const void *)
${TOPDIR}/include/ostream.cc:135: class std::basic_ostream<char,Traits> & std::basic_ostream<char,Traits>::operator <<(std::basic_streambuf<char,Traits> *)
${TOPDIR}/include/ostream:449: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, const signed char *)
${TOPDIR}/include/ostream:441: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, const unsigned char *)
${TOPDIR}/include/ostream:433: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, signed char)
${TOPDIR}/include/ostream:425: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, unsigned char)
${TOPDIR}/include/ostream:402: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, const char *)
${TOPDIR}/include/ostream:390: class std::basic_ostream<char,Traits> & std::operator <<<char, Traits>(std::basic_ostream<char,Traits> &, const char *)
${TOPDIR}/include/ostream:356: class std::basic_ostream<char,Traits> & std::operator <<<Traits>(std::basic_ostream<char,Traits> &, char)
${TOPDIR}/include/ostream:345: class std::basic_ostream<char,Traits> & std::operator <<<char, Traits>(std::basic_ostream<char,Traits> &, char)