• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error on comple

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
Error:
Code:
error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'

how to fix this?
 
otsystem.h
Code:
#if BOOST_VERSION < 104400
#define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename()
#else
#define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename()[COLOR=#ff0000].string()[/COLOR]
#endif

Remove .string() and try with compiling afterwards.
 
otsystem.h
Code:
#if BOOST_VERSION < 104400
#define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename()
#else
#define BOOST_DIR_ITER_FILENAME(iterator) (iterator)->path().filename()[COLOR=#ff0000].string()[/COLOR]
#endif

Remove .string() and try with compiling afterwards.

Same thing, the error persists.
 
Back
Top