RAD Studio
ContentsIndex
PreviousUpNext
E2487: Cannot specify default function arguments for explicit specializations

An explicit specialization of a function may not declare default function arguments. For example:

template<class T>
void foo(T a);
template<>
void foo<int>(int a = 10);// error: default value not allowed
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!