Namespaces
Variants
Actions

Talk:cpp/types/is scoped enum

From cppreference.com

[edit] Unnamed namespace in Possible implementation

I'm not entirely sure, but shouldn't the code under 'Possible implementation' work fine without the unnamed namespace? The only definition I see is that of "is_scoped_enum_impl", but multiple definitions of a variable template should not cause a ODR violation.

Looks unnecessary to me too --Ybab321 (talk) 06:47, 27 March 2022 (PDT)
I'm afraid of that resolution to different function overloads can violate ODR. Now I think there's perhaps a better way to avoid this --Fruderica (talk) 01:01, 11 March 2025 (PDT)