ut icon indicating copy to clipboard operation
ut copied to clipboard

Should it be __cpp_nontype_template_parameter_auto instead of __cpp_nontype_template_parameter_class?

Open eiytoq opened this issue 1 year ago • 0 comments

in ut.hpp

#if defined(__cpp_nontype_template_parameter_class)
template <auto Constant>
#else
template <bool Constant>
#endif
constexpr auto constant = Constant;

https://en.cppreference.com/w/cpp/experimental/feature_test.html

eiytoq avatar Jun 15 '25 08:06 eiytoq