Subject: [Boost-bugs] [Boost C++ Libraries] #8894: shared_array cannot be constructed from a null pointer constant
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-24 10:09:41
#8894: shared_array cannot be constructed from a null pointer constant
-----------------------------------------------+-----------------------
Reporter: Jonathan Wakely <jwakely.boost@â¦> | Owner: pdimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.54.0 | Severity: Problem
Keywords: |
-----------------------------------------------+-----------------------
I would expect the following to compile:
{{{
#include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
int main()
{
boost::shared_ptr<int> p1(NULL);
boost::shared_ptr<int[]> p2(NULL);
boost::shared_array<int> p3(NULL); // ERROR
#if __cplusplus >= 201103L
boost::shared_ptr<int> p4(nullptr);
boost::shared_ptr<int[]> p5(nullptr);
boost::shared_array<int> p6(nullptr); // ERROR
#endif
}
}}}
With Boost 1.47 the shared_array initializations did compile with NULL and
nullptr.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8894> 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:13 UTC