Using Boost 1.30.0. MSVC6
Tow problems: (1) I have to #define __WIN32__, and (2) Doesn't compile
Am I doing something wrong, here?
#include "afxwin.h"
#include <map>
#define __WIN32__ // why do I have to define this???
#include "boost/pool/pool_alloc.hpp"
int main()
{
std::map
return 0;
}
:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree(587) :
error C2664: 'deallocate' : cannot convert parameter 1 from 'struct
std::_Tree,struct
std::map >::_Kfn,struct
std::less<int>,class boost::pool_allocator >::_Node *' to 'int *const '
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree
(587) : while compiling class-template member function 'void
__thiscall std::_Tree,struct
std::map >::_Kfn,struct
std::less<int>,class boost::pool_allocator >::_Freenode(struct std::_Tree,struct std::map
::_Kfn,struct std::less<int>,class
boost::pool_allocator >::_Node *)'