);
}error C2993: 'std::function<double (double)>': is not a valid type for non-typedouble (double)>>' being compiled
error C2993: 'std::function<double (double)>': is not a valid type for non-typematching overloade
C2754: 'Foo<<unnamed-symbol>>::Internal<Bar,unused>' : a partial specialization cannot have a dependent non-typeC2754: 'Foo<<unnamed-symbol>>::Internal<Baz,unused>' : a partial specialization cannot have a dependent non-typeC2
:
error C2971: 'Func' : template parameter 'fruit' : 'fruit' : a local variable cannot be used as a non-type/ error C2971: 'Func' : template parameter 'fruit' : 'fruit' : a local variable cannot be used as a non-type
14.8.2.4 /3:从类型推导模板参数中的语句 and non-typethat is a specialization of a class template (e.g., A<int>)
includes the types, templates, and non-typeIn most cases, the types, templates, and n
Foo::Lock();不使用c++11:error: typename specifier refers to non-typemember 'Lock' in 'Foo'和c++11:'error: typename specifier refers to non-type member 'Lock' in 'Foo'
这就引出了我的问题
constexpr (SOME_NON_TYPE_ARG == typed_nullopt<T>) std::cout << a << " we do not have non-typetest_optional_template<int, int, 3>(5);}8
10 we do not have non-type
Program Files\boost\boost_1_39\boost/bind/mem_fn_template.hpp(146) : error C2993: '' : illegal type for non-typeProgram Files\boost\boost_1_39\boost/bind/mem_fn_template.hpp(151) : error C2993: '' : illegal type for non-typeProgram Files\boos