Title
unique_ptr<T[]>(nullptr_t) missing noexcept
Status
nad editorial
Section
[unique.ptr.runtime]
Submitter
Howard Hinnant, Paolo Carlini

Created on 2011-05-27.00:00:00 last changed 153 months ago

Messages

Date: 2011-08-16.10:45:53

Proposed resolution:

This wording is relative to the FDIS.

  1. Modify the synopsis in [unique.ptr.runtime]:

    namespace std {
      template <class T, class D> class unique_ptr<T[], D> {
      public:
        typedef see below pointer;
        typedef T element_type;
        typedef D deleter_type;
    
        // 20.7.1.3.1, constructors
        constexpr unique_ptr() noexcept;
        […]
        constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
    	
        […]
      };
    }
    
Date: 2011-08-16.10:45:53

[ Bloomington, 2011 ]

Closed as NAD Editorial.

Date: 2011-05-27.00:00:00

The synopsis in [unique.ptr.single] specifies:

constexpr unique_ptr(nullptr_t) noexcept

which looks correct to me. However the corresponding constructor in [unique.ptr.runtime] is missing noexcept:

constexpr unique_ptr(nullptr_t) : unique_ptr() { }
History
Date User Action Args
2011-08-16 10:45:53adminsetmessages: + msg5840
2011-08-16 10:45:53adminsetstatus: new -> nad editorial
2011-05-27 22:53:47adminsetmessages: + msg5794
2011-05-27 00:00:00admincreate