This is likely very simple. I have added an std::set<int> my_set;
to my header file for some class. Then, in that classes implementation, I try to insert into this set. As an example, just doing my_set.insert(1);
This is not compiling, which is very strange behaviour. Here is my compiler error:
error C2663: 'std::_Tree<_Traits>::insert' : 4 overloads have no legal conversion for 'this' pointer
The file I included to use set is #include <set>
. What have I done wrong? I have not called the set anywhere else in the code.