Title
span destructor is redundantly noexcept
Status
wp
Section
[span.overview]
Submitter
Ben Craig

Created on 2023-03-11.00:00:00 last changed 10 months ago

Messages

Date: 2023-06-19.14:50:03

Proposed resolution:

This wording is relative to N4928.

  1. Modify [span.overview], class template span synopsis, as indicated:

    […]
    
    ~span() noexcept = default;
    
    […]
    
Date: 2023-06-17.00:00:00

[ 2023-06-17 Approved at June 2023 meeting in Varna. Status changed: Voting → WP. ]

Date: 2023-03-15.00:00:00

[ 2023-03-22; Reflector poll ]

Set status to Tentatively Ready after six votes in favour during reflector poll.

Date: 2023-03-11.00:00:00

The span class template synopsis in [span.overview] has this declaration:

~span() noexcept = default;

The noexcept is redundant, as ~span is noexcept automatically. I think the entire declaration is unnecessary as well. There is no additional specification for ~span() at all, much less some that warrants inclusion in the class template synopsis.

Recommended fix:

~span() noexcept = default;

Alternative fix:

~span() noexcept = default;
History
Date User Action Args
2023-06-19 14:50:03adminsetmessages: + msg13648
2023-06-19 14:50:03adminsetstatus: voting -> wp
2023-06-12 08:52:25adminsetstatus: ready -> voting
2023-03-22 22:33:28adminsetmessages: + msg13470
2023-03-22 22:33:28adminsetstatus: new -> ready
2023-03-12 18:44:25adminsetmessages: + msg13454
2023-03-11 00:00:00admincreate