lundi 4 mai 2015

Boost.Intrusive and fast_pool_allocator

If I say this, I get a strange compiler (gcc4.9) error later on:

When i go to access this IL:

for(auto & odp : odpList[i]) //<-error here
{

/usr/local/include/boost/intrusive/pack_options.hpp|33|error: no class template named ‘pack’ in ‘class boost::fast_pool_allocator<OneDepthPrice>’

typedef std::tuple<int, int> OneDepthPrice
typedef boost::intrusive::list<OneDepthPrice,  boost::fast_pool_allocator<OneDepthPrice>, constant_time_size<false>> BaseList;

What is the correct way to do this?

Aucun commentaire:

Enregistrer un commentaire