Home » Community » Newbie corner » Tricky template non-typeParameter
|
Re: Tricky template non-typeParameter [message #51825 is a reply to message #51822] |
Sat, 08 June 2019 17:27 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
According to this Non-type template parameter can be
std::nullptr_t (since C++11);
an integral type;
a pointer type (to object or to function);
a pointer to member type (to member object or to member function);
an enumeration type.
It cannot be string (const char*) or double/float.
Try to use enums instead ...
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Fri Mar 29 00:54:13 CET 2024
Total time taken to generate the page: 0.01221 seconds
|