|
Boost Users : |
Subject: Re: [Boost-users] [multi-index] foreach supports breaks compilation
From: Michel Morin (mimomorin_at_[hidden])
Date: 2011-11-16 10:54:04
Michel Morin wrote:
> // my_foreach.h
> #include <boost/foreach.hpp>
>
> #include <boost/multi_index_container.hpp>
> #include <boost/multi_index/hashed_index.hpp>
> #include <boost/multi_index/ordered_index.hpp>
> #include <boost/multi_index/random_access_index.hpp>
> #include <boost/multi_index/sequenced_index.hpp>
Oops, this should be
// my_foreach.h
#include <boost/foreach.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/random_access_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#define foreach BOOST_FOREACH
(boost/multi_index_container.hpp is not needed.)
Regards,
Michel
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