2060. unique_ptr<T[]>(nullptr_t) missing noexcept

Section: 23.11.1.3 [unique.ptr.runtime] Status: NAD Editorial Submitter: Howard Hinnant, Paolo Carlini Opened: 2011-05-27 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [unique.ptr.runtime].

View all issues with NAD Editorial status.

Discussion:

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

constexpr unique_ptr(nullptr_t) noexcept

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

constexpr unique_ptr(nullptr_t) : unique_ptr() { }

[Bloomington, 2011]

Closed as NAD Editorial.

Proposed resolution:

This wording is relative to the FDIS.

  1. Modify the synopsis in 23.11.1.3 [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() { }
    	
        […]
      };
    }