$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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