Re: [Boost-bugs] [Boost C++ Libraries] #2602: Error, inaccessible: boost::thread::thread(boost::thread&) is not accessible from ...

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2602: Error, inaccessible: boost::thread::thread(boost::thread&) is not accessible from ...
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-18 00:18:35


#2602: Error, inaccessible: boost::thread::thread(boost::thread&) is not
accessible from ...
---------------------------------------------------+------------------------
  Reporter: Roberto Gimenez <chilabot_at_[hidden]> | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.38.0 | Component: thread
   Version: Boost 1.37.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------+------------------------

Comment(by steven_watanabe):

 The compiler doesn't seem to actually call the constructor.
 As far as I can tell, it just requires it to exist. So,
 there seem to be two options, we can get a compile time
 error when copying a non-const thread, and a link error when
 copying a const thread or vice-versa. The attached patch,
 [attachment:thread.patch], takes the alternative of making
 copying a non-const thread a compile time error. All the
 tests pass for me.

 {{{
 bash-3.2.$ CC -V
 CC: Sin C++ 5.9 SunOS_i386 2007/11/15
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2602#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC