Boost logo

Boost Users :

Subject: Re: [Boost-users] Insertion/Use of boost::multi_index - new thread
From: Ram (sourceopen_at_[hidden])
Date: 2016-09-21 02:38:45


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





Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net