#if !defined(NDEBUG)
#define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING
#define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE
#endif
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
using boost::multi_index_container;
using namespace boost::multi_index;
struct base
{
int base_data;
};
struct child : public base
{
int child_data;
};
struct base_data{ };
typedef multi_index_container
<
child,
indexed_by<
ordered_non_unique< tag<base_data>, BOOST_MULTI_INDEX_MEMBER(child, int, base_data) >
>
> child_set;
int main()
{
child_set cs;
return 0;
}