RAD Studio
ContentsIndex
PreviousUpNext
E2431: Non-type template parameters cannot be of floating point, class, or void type (C++)

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!