incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-205) lib.string.io operator << calls width (0) in any case regardless of the sentry truth
Date Wed, 21 Jun 2006 10:52:29 GMT
lib.string.io operator << calls width (0) in any case regardless of the sentry truth
------------------------------------------------------------------------------------

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

  Components: 21. Strings  
    Versions: 4.1.3    
 Environment: all
    Reporter: Anton Pevtsov
    Priority: Minor


The following test fails:

#include <iostream>
#include <sstream>
#include <string>
#include <cassert>

int main(int argc, char* argv[])
{
    std::string str ("abcdefghijk");
    std::ostringstream os;
    const std::streamsize width = 2;

    os.width (width);
    os.clear (std::ios_base::failbit);

    os << str;
    assert (os.width () == width);

    return 0;
}

-- 
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