stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-219) std::setfill() errors with std::basic_ostream<char, UDT>
Date Wed, 28 Jun 2006 18:11:29 GMT
std::setfill() errors with std::basic_ostream<char, UDT>
--------------------------------------------------------

         Key: STDCXX-219
         URL: http://issues.apache.org/jira/browse/STDCXX-219
     Project: C++ Standard Library
        Type: Bug

  Components: 27. Input/Output  
 Environment: all
    Reporter: Martin Sebor


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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message