Closed VishalSubramanyam closed 11 months ago
Please see the explanation of the answer and this paragraph from the draft. Your link describes the behaviour of the static_assert
declaration alone, but the issue here is in the usage of a class template with such a declaration.
The following is taken from cppreference - static_assert
So a compile-time error is expected.