[Boost-bugs] [Boost C++ Libraries] #6222: Compile error with SunStudio

Subject: [Boost-bugs] [Boost C++ Libraries] #6222: Compile error with SunStudio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-06 08:31:14


#6222: Compile error with SunStudio
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.48.0 | Severity: Showstopper
 Keywords: |
------------------------------+---------------------------------------------
 {{{
 // B.cpp
 #include <boost/thread.hpp>

 static int function() {
   return 42;
 }

 int main(int argc, const char *argv[]) {
   boost::packaged_task<int> pt(function);
   boost::unique_future<int> future = pt.get_future();
   return 0;
 }
 }}}

 When trying to compile this I get this error:

 "B.cpp", line 10: Error:
 boost::unique_future<int>::unique_future(boost::unique_future<int>&) is
 not accessible from main(int, const char**).
 1 Error(s) detected.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6222>
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:08 UTC