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 pinskia at gcc dot gnu dot org  2004-08-27 08:57 -------
Note this is still invalid as operator lock_<mutex> returns a rvalue and lock (which is a constant 
reference to lock_base) is assigned that rvalue as we are going to use the copy constructor of 
lock_base instead of lock_<mutext>.

-- 


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]