Question Details

No question body available.

Tags

c++ templates language-lawyer nullptr non-type-template-parameter

Answers (1)

January 30, 2026 Score: 3 Rep: 2,878 Quality: Low Completeness: 60%

Yes: the resolution of CWG2907 made this code valid by specifying that the lvalue-to-rvalue conversion can be applied to any expression of type cv nullptr_t during constant evaluation, even if the underlying object is not usable in constant expressions.