Issue Details (XML | Word | Printable)

Key: STDCXX-327
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[NO_EXTENSIONS] stringbuf::str(const char*) inaccessible

Created: 22/Jan/07 08:14 PM   Updated: 22/Jan/07 08:54 PM
Return to search
Component/s: 27. Input/Output
Affects Version/s: 4.1.3
Fix Version/s: 4.2.0

Time Tracking:
Not Specified

Environment: All with _RWSTD_NO_EXTENSIONS #defined.

Resolved: 22/Jan/07 08:54 PM
Resolution Date: 22/Jan/07 08:54 PM


 Description  « Hide
$ cat t.cpp && make t CPPOPTS=-D_RWSTD_NO_EXTENSIONS
#include <sstream>

int main ()
{
std::stringbuf sb;

sb.str ("");
}
eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -D_RWSTD_NO_EXTENSIONS -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
"t.cpp", line 7: error #265-D: function "std::basic_stringbuf<_CharT, _Traits,
_Allocator>::str(const _CharT *, unsigned int) [with _CharT=char,
_Traits=std::char_traits<char>, _Allocator=std::allocator<char>]"
(declared at line 139 of "/build/sebor/dev/stdlib/include/sstream")
is inaccessible
sb.str ("");
^

1 error detected in the compilation of "t.cpp".
make: *** [t.o] Error 2



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #498783 Mon Jan 22 20:23:47 UTC 2007 sebor 2007-01-22 Martin Sebor <sebor@roguewave.com>

STDCXX-327
* sstream (stringbuf::str): Added a public char_type* overload
to prevent compilation errors in strict mode when the 2 argument
overload is private.
* sstream.cc (stringbuf::str): Removed a comment.
Files Changed
MODIFY /incubator/stdcxx/trunk/include/sstream
MODIFY /incubator/stdcxx/trunk/include/sstream.cc