Is there a way to use a variadic template as a Key template parameter in std::unordered_map?
I tried to do it in this way:
template<typename T, typename ...Args>
class Wrapper {
public:
// some staff
private:
unordered_map<Args, T> hashmap;
};
But got this error:
Error C3520 'Args': parameter pack must be expanded in this context
Aucun commentaire:
Enregistrer un commentaire