RAD Studio |  |

E2423: Explicit specialization or instantiation of non-existing template 'template' (C++)

Attempting to explicit specialize or instantiate a template which does not exist is clearly illegal. For example:

Copy Code

    template<class T>
    class foo;
    template class bar<char>;// error: what is "bar"??
    template<>
    class bar<int> { };// error: there's that "bar" again

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!