incubator-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] Closed: (STDCXX-219) std::setfill() errors with std::basic_ostream<char, UDT>
Date Thu, 23 Aug 2007 03:38:30 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor closed STDCXX-219.
-------------------------------

    Resolution: Cannot Reproduce

Thanks. I can confirm this with gcc 4.1.2 and EDG eccp 3.9 (with locally modified sources
to get EDG eccp to compile). Closing.

$ cat t.cpp && make t
#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';
}
eccp -c -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx/include -I/build/sebor/stdcxx-eccp-3.9-11s/include
-I/home/sebor/stdcxx/examples/include  -A -x --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib
-g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815
  t.cpp
eccp t.o -o t --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib    -L/build/sebor/stdcxx-eccp-3.9-11s/lib
 -lstd11s  -lm 


> std::setfill() errors with std::basic_ostream<char, UDT>
> --------------------------------------------------------
>
>                 Key: STDCXX-219
>                 URL: https://issues.apache.org/jira/browse/STDCXX-219
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 27. Input/Output
>         Environment: all
>            Reporter: Martin Sebor
>            Assignee: 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message