KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
template<typename T1, typename T2> class Bimap { public: class Data { private: template<typename T> Data& set(T); template<> Data& set<T1>(typename T1 v) { /*...*/ } }; }; That gives me the error: error: explicit specialization in non-namespace scope 'class Bimap<T1, T2>::Data' I understand what the error is saying. But why I can't I do this? And how can I fix it?
Tags (comma-separated)
Save Edits
Cancel