[Boost-bugs] [Boost C++ Libraries] #3944: unique_ptr problem with return

Subject: [Boost-bugs] [Boost C++ Libraries] #3944: unique_ptr problem with return
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-18 09:25:53


#3944: unique_ptr problem with return
-------------------------------+--------------------------------------------
 Reporter: habdank@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 Dears

 We are using gcc 4.1.2.

 In the boost version '''1.39''' the code like compiles well:

 return unique_ptr<FILE,PIPE_Deleter>(0);

 In the boost '''1.38''' does not.

 The error message is like below and points that during return
 copy ctor is used, which is private, but there is no documentation
 on changes between 1.39 and 1.38 in the unique_ptr interface,
 so for both boost versions code shall be OK.

 Could you look at that issue, please.

 /usr/local/include/boost-1_38/boost/interprocess/smart_ptr/unique_ptr.hpp:378:
 error: ''''boost::interprocess::unique_ptr<T, D>::unique_ptr(const
 boost::interprocess::unique_ptr<T, D>&) [with T = _IO_FILE, D =
 PIPE_Deleter]'''' is private
 jpegDisplay.cpp:279: error: within this context
 /usr/local/include/boost-1_38/boost/interprocess/smart_ptr/unique_ptr.hpp:378:
 error: 'boost::interprocess::unique_ptr<T, D>::unique_ptr(const
 boost::interprocess::unique_ptr<T, D>&) [with T = _IO_FILE, D =
 PIPE_Deleter]' is private
 jpegDisplay.cpp:279: error: within this context

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