Juha Nieminen wrote:
> Andrew Tomazos <> wrote:
>> Compiler says no partial specialization.
>>
>> How do I do what I'm trying to do?
Closest to what you are trying:
template<bool b> struct Help {
static ...
};
template<> struct Help<true> {
static ...
};
And call Help<...>::function(...) from your wrapper.
You could also use overloading and enable_if instead.
> Support for partial specialization of functions was not in the old
> C++ standard but is supported in the new one.
Really? I don't remember hearing of such a change, and gcc/clang still
reject partial specialization of functions.