Attached my allocator_utilities.hpp to this mail.

When I tried replacing,

  this->sample1.insert(1);

by,

   int x=0,y=0;
  boost::detail::allocator::construct(&x,y);

this is the compilation output(changed the file name/directories in the previous example too),

Compiling...
example.cpp
c:\sample\common\lib\boost\boost\detail\allocator_utilities.hpp(153) : error C2061: syntax error : identifier 'p'
         c:\sample\example.cpp(389) : see reference to function template instantiation 'void boost::detail::allocator::construct<int>(void *,const Type &)' being compiled
        with
        [
            Type=int
        ]
Build log was saved at "file://c:\sample\build\bin\sample\win\Debug\obj\BuildLog.htm"
Sample - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Thanks,
Ram