Subject: [Boost-bugs] [Boost C++ Libraries] #11093: Limitations of unique_ptr in C++03 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-10 07:30:14
#11093: Limitations of unique_ptr in C++03 mode
-------------------------------------------+------------------------
Reporter: Adam Romanek <romanek.adam@â¦> | Owner: igaztanaga
Type: Tasks | Status: new
Milestone: To Be Determined | Component: move
Version: Boost 1.57.0 | Severity: Problem
Keywords: unique_ptr, move, emulation |
-------------------------------------------+------------------------
This is a follow-up of a thread on boost-dev mailing list which touches
the topic of boost::movelib::unique_ptr emulation in C++03.
One of such limitations is related to copy initialization expressions:
{{{#!cpp
unique_ptr<Derived> x = make_unique<Derived>();
unique_ptr<Base> y = move(x);
}}}
which won't compile, while:
{{{#!cpp
unique_ptr<Derived> x = make_unique<Derived>();
unique_ptr<Base> y(move(x));
}}}
will compile without any problems.
There are probably some other limitations. It would be best if they were
documented.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11093> 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:18 UTC