• Advertisement


This topic is now archived and is closed to further replies.

boost::pool_allocator, STLPort and VC++ 7.0 don't match

This topic is 5581 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to compile this:
#define BOOST_NO_MT

#include <vector>

#include <boost/pool/pool_alloc.hpp>

int main() {
  std::vector<int, boost::pool_allocator<int> > bleh;
  return 0;
But it won't compile if I use STLPort. If I use VC++'s standard STL implementation (Dinkumware?), it seems to be working, or at least it compiled okay. More precisely I get these compiler errors (dunno if these will be of any use, though..):
D:\programs\Microsoft Visual Studio .NET\Vc7\include\stlport
\stl\_alloc.h(506): error C2228: left of '.deallocate' must have
class/struct/union type

D:\programs\Microsoft Visual Studio .NET\Vc7\include\stlport
\stl\_alloc.h(506): error C2784: '_STL::allocator<_Tp2>
&_STL::__stl_alloc_rebind(_STL::allocator<_Tp1> &,
const _Tp2 *)' : could not deduce template argument for 
'_STL::allocator<_Tp> &' from '_STL::_STLP_alloc_proxy<_Value,
            _Value=int *,
So... What am I doing wrong? [edited by - civguy on November 9, 2002 6:12:01 PM]

Share this post

Link to post
Share on other sites

  • Advertisement