Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
Novo is currently offline  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
 
Read Message
Read Message
Previous Topic: Value strange behaviour result in ValueTypeError
Next Topic: What is the difference between learning U++ and Learning C++ through Microsoft Visual Studio?
Goto Forum:
  


Current Time: Mon May 06 17:34:04 CEST 2024

Total time taken to generate the page: 0.02247 seconds