[cfe-dev] clang c++0x template function declaration error
John Freeman
jfreeman at cse.tamu.edu
Mon Jul 4 11:31:40 PDT 2011
On 7/4/2011 1:03 PM, Eli Friedman wrote:
> The declaration of the template type_constructor is broken. Think
> about it this way: type_constructor has one template parameter, so
> type_constructor<Y> should refer to a single function; however, you're
> trying to specify it as returning multiple types.
Or put another way, the second template argument for X, "foo", should be
a constant function pointer, but the parameter to type_constructor, "f",
is not.
- John
More information about the cfe-dev
mailing list