Is there any way to tell if a template parameter is a specific base data type like int or unsigned int? std::is_base_of doesn’t do it, tried that. I’d like to write collections that can box all the basic data types but I can’t find a way to tell which type it is…
Share
Use is_same. If you don’t have an implementation (std or boost) then use this: