set compiler error
-
Can anyone explain why i have to use a namespace specifier in the code below?
#include <set>
using std::set;class myclass
{
...
set<CString,strcmpfn> myset; // no problem
...myfunc()
{
...
// this gives a compile error, have to be std::set
set<CString, strcmpfn>::iterator it = myset.find(szPath);
...
}
};/Magnus
- I don't necessarily agree with everything I say
-
Can anyone explain why i have to use a namespace specifier in the code below?
#include <set>
using std::set;class myclass
{
...
set<CString,strcmpfn> myset; // no problem
...myfunc()
{
...
// this gives a compile error, have to be std::set
set<CString, strcmpfn>::iterator it = myset.find(szPath);
...
}
};/Magnus
- I don't necessarily agree with everything I say
Add
using std::set::iterator;
--Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm