Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C++

Quickly Check whether C++ Template Instances have the Same Parameters

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
7 Feb 2012CPOL 10.4K   1  
How to quickly check whether C++ Template Instances have the same parameters

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
11 Feb 2012geoyar
How to quickly check whether C++ Template instances have the same parameters
Please Sign up or sign in to vote.
7 Feb 2012Stefan_Lang
If you're using templates already, and are willing to adapt your class definitions, then this should work:template class BaseClass {public: virtual bool equals(T* other) = 0;};template class ChildClass : public BaseClass > {public: typedef...
Please Sign up or sign in to vote.
5 Feb 2012Sebastian Krysmanski 4 alternatives  
How to check whether two template instances of a C++ class have the same template parameters without using dynamic_cast
Please Sign up or sign in to vote.
9 Feb 2012Paul Michalik
This post helps to quickly check whether C++ template instances have the same parameters.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions