ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Stream-buffers can't be copied?
by Howard Hinnant other posts by this author
May 29 2003 2:30PM messages near this date
[boost] Stream-buffers can't be copied? | [boost] Re: I/O library status
On Thursday, May 29, 2003, at 12:29  AM, Daryle Walker wrote:

>  I'm trying to fix up the I/O library submission I gave a few months 
>  ago, and came up with an issue with a copy constructor and GCC.  I 
>  explicitly wrote a copy constructor for a new stream-buffer class 
>  template.  I just added test code that used that constructor.  
>  Everything ran fine on my Metrowerks compiler, but Project Builder 
>  (which uses GCC) choked.
> 
>  One of the reasons was that GCC made the basic_streambuf class 
>  template noncopyable.  It referred to a DR # 50.  The standard 
>  currently has streambuf copying unspecified (in the normal-life sense, 
>  not the C++ sense), so it should automatically be copyable.  My code 
>  took advantage of that.  The copying isn't too useful, especially 
>  since streams are explicitly noncopyable.  Should I just remove that 
>  code?

I'm not aware of anything in the standard, or in the defects list 
(including #50) that says a std::basic_streambuf is not copyable.

DR 50 states that ios_base is not copyable.  And it is true that 
Metrowerks currently allows ios_base to be copied.  The semantics of 
this support basic_ios::copyfmt.  And non-copyability is introduced at 
the basic_ios level.

-Howard

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Daryle Walker
Howard Hinnant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved