floating point non-type template parameters,该如何处理

floating point non-type template parameters
谁能解释下这个概念?
不是要中文的含义,是概念上的。
------解决方案--------------------
引用:
Quote: 引用:

Quote: 引用:

Quote: 引用:

你用的编译器太烂,错误提示抽风。
blog.sina.com.cn/s/blog_4bc03a140100076x.html

这个我懂。

我只是不明白非类型的意思是指不是类类型?!

non-type不是non-class-type。模板非类型参数是指不以class和typename起始声明的type-parameter(非泛型);一般来说,还排除了type-parameter以template起始的模板模板参数(高阶参数化多态):
N3936/14.1
137) Since template template-parameters and template template-arguments are treated as types for descriptive purposes, the terms non-type parameter and non-type argument are used to refer to non-type, non-template parameters and arguments.

具体来说template<class T, float f> void func(T) {}里的float f这个parameter-parameter引入的模板参数f就不是类型参数,因为f表示具体类型的值而不是任意的类型(用Haskell的话来说,f不是一个类型变量)。

……
parameter-parameter
→template-parameter