Subject: [Boost-bugs] [Boost C++ Libraries] #4637: An extra scoped_array(n) constructor, please!
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-08 09:37:22
#4637: An extra scoped_array(n) constructor, please!
------------------------------+---------------------------------------------
Reporter: niels_dekker | Owner: pdimov
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
When I construct a non-empty ''scoped_array<my_type>'', I currently need
to specify the type ''my_type'' twice:
{{{
boost::scoped_array<my_type> a( new my_type[n]() );
}}}
Please consider supporting the following as an equivalent:
{{{
boost::scoped_array<my_type> a(n);
}}}
A patch to the trunk (scoped_array.hpp + smart_ptr_test.cpp) is hereby
attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4637> 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:04 UTC