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
[boost] Stream-buffers can't be copied?
by Daryle Walker other posts by this author
May 29 2003 4:29AM messages near this date
[boost] Re: How to add automated testing? | Re: [boost] Stream-buffers can't be copied?
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?

(The other compiling problem was not accepting std::char_traits< char 
 > ::eq as an argument to std::bind2nd.  Could the boost version of 
_functional_ do better?)

Daryle

_______________________________________________
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