[Bug c++/16915] unnecessary copy construction

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 27 08:57:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list