Non-type template parameters are restricted as to what type they may be. Floating point, class and void types are illegal. For example:
template<float U> class foo;// error: "U" cannot be of "float" type
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|