C++ Logo


Advanced search

[SG10] nodiscard updates after Cologne?

From: Barry Revzin <barry.revzin_at_[hidden]>
Date: Thu, 29 Aug 2019 18:49:41 -0500
We had two changes to [[nodiscard]] in Cologne:

- P1301R4: [[nodiscard("should have a reason")]], for C++20
- P1771R1: [[nodiscard]] for constructors, as a DR

Currently, I put both under the 201907 block (
But that means we have a [retroactive] C++17 feature whose macro has a
value two years later. Is that fine? Alternatively, we could invent an
earlier value for P1771R1 that's in the C++17 timeline.



Received on 2019-08-30 01:49:52