Skip to content

Should it be __cpp_nontype_template_parameter_auto instead of __cpp_nontype_template_parameter_class? #687

@eiytoq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions