Boost C++ Libraries: Ticket #3944: unique_ptr problem with return https://svn.boost.org/trac10/ticket/3944 <p> Dears </p> <p> We are using gcc 4.1.2. </p> <p> In the boost version <strong>1.39</strong> the code like compiles well: </p> <p> return unique_ptr&lt;FILE,PIPE_Deleter&gt;(0); </p> <p> In the boost <strong>1.38</strong> does not. </p> <p> 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. </p> <p> Could you look at that issue, please. </p> <p> /usr/local/include/boost-1_38/boost/interprocess/smart_ptr/unique_ptr.hpp:378: error: <strong>'boost::interprocess::unique_ptr&lt;T, D&gt;::unique_ptr(const boost::interprocess::unique_ptr&lt;T, D&gt;&amp;) [with T = _IO_FILE, D = PIPE_Deleter]</strong>' 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&lt;T, D&gt;::unique_ptr(const boost::interprocess::unique_ptr&lt;T, D&gt;&amp;) [with T = _IO_FILE, D = PIPE_Deleter]' is private jpegDisplay.cpp:279: error: within this context </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3944 Trac 1.4.3 Steven Watanabe Thu, 25 Feb 2010 15:59:04 GMT status, component changed; resolution set https://svn.boost.org/trac10/ticket/3944#comment:1 https://svn.boost.org/trac10/ticket/3944#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">interprocess</span> </li> </ul> <p> If it didn't work in the older version and does work in the newer version, it's probably a bug that was fixed. 1.38 was released a while ago and we can't easily go back and fix it. </p> Ticket