You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it should stay named this way. We can change it to constexpr function, but two obstacles in our way:
Not all compilers supporting gsl also support constexpr(not sure about this, i am new to this library, likely it is true, is it?).
Why do we need to bother the compiler if we could just use bare macro and bother preprocessor? which seems to be a lot faster(not sure about this too, but i know that C++ compiler is slow, so preprocessor is likely to be faster, because it is more mindless, in a good way).
Yeah, i bet core guidelines have self-violations. It is a complex system, and self-violations are a property of complex systems.
GSL/include/gsl/gsl_assert
Line 170 in 1212bea
Naming violates both ES.32 and ES.33:
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#S-interfaces
"Scream when you see a lower case macro." While it's not entirely lower case, obvious violation is obvious.
The text was updated successfully, but these errors were encountered: