Skip to content

Should it be __cpp_nontype_template_parameter_auto instead of __cpp_nontype_template_parameter_class? #687

Description

@eiytoq

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions