Hello *,
I try to use a multi_index container with a composite key. The container is
defined as follows:
struct index_data
{
entry_header header; //has various public fields one of them is
timestamp_
fs::entry entry;
bool masked;
};
typedef size_t timestamp_t; //in reallity this type is a class, but the
error can be reproduced with this typedef as well
timestamp_t const& timestamp(index_data const& data)
{
return data.header.timestamp_;
}
bool mask_state(index_data const& data)
{
return data.masked;
}
struct entry_data_tag {};
typedef mi::multi_index_container
< index_data,
mi::indexed_by
< mi::ordered_non_unique
< mi::tag
entry_index;
typedef entry_index::index