|
|
|
|
|
by steerablesafe
1565 days ago
|
|
Yes, the quote for [meta] only specifies UB (although it should arguably be IFNDR). If yourself implemented `your::is_constructible_v`, then in translation units it instantiated differently for the same template arguments, then it would be ODR-violation according to https://eel.is/c++draft/temp.point#7.sentence-4 . |
|
Anyway, this discussion is dragging on forever, so I'm just gonna stop here and wrap this up with the following:
As I see it, the only realistic way you could ever generate a buggy program with this is if you're getting nerd-sniped and desperately trying to come up with a counterexample in response to someone's challenge on HN. For practical purposes I see it as a non-issue.
[1] https://eel.is/c++draft/basic.def.odr#5