This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16915] unnecessary copy construction


------- Additional Comments From boris at kolpackov dot net  2004-08-27 15:37 -------
Didn't quite get what is invalid. Is it invalid to use lock_base copy-ctor
instead of lock_<mutex> -or- the code is invalid because lock_base copy-ctor
should be used. If the former then I am glad we finally agree. If the latter
then what about the example from the standard, is it invalid too? I don't see
any semantical differences between "extern B f ()" and "operator lock_<mutex>
()" - they both return rvalue.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16915


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]