1
私は、このようなスニペットを持っている:C++ 14可変長引数テンプレートの問題は、 '曖昧である'
template<typename Last>
bool apply_impl(data_t * d) const
{
return this->Last::apply(*this, vs);
}
template<typename Head, typename ...Tail>
bool apply_impl(data_t * d) const
{
return this->Head::apply(*this, d) && this->template apply_impl<Tail...>(d);
}
コンパイラエラーは次のとおりです。
error: call to member function 'apply_impl' is ambiguous
return this->Head::apply(*this, vs) && this->template apply_impl<Tail...>(vs);
これを解決する方法は?
[MCVE]を提供してください。 – Barry
詳細については必要ないように見える、人々は私が必要なものを手に入れました:) – StNickolay
@Barry何が足りないのですか? – Angew