[Multi-Index] composite_key problems
Hi,
I like to build a data structure and like to access it with different
keys, so I try multi_index for this. My data structure looks like this:
struct learnedMeasure
{
// target_name + measure_name together is the composite key
std::string target_name;
std::string measure_name;
float negative;
float positive;
float zero;
}
I like to access this data structure like this in SQL:
SELECT measure, Negative, Positive, Zero from tabelle WHERE
target_name='xxx'
SELECT Target_name, Negative, Positive, Zero from tabelle WHERE
measure_name='xxx'
SELECT Negative,Positive,Zero from tabelle WHERE measure_name='xxx'
AND Target_name='yyy'
I hacked the basic example to get this working. My example compiles,
but if I execute it, I get only warnings:
probe: /usr/include/boost/multi_index/detail/index_iterator.hpp:107:
typename Node::value_type&
boost::multi_index::detail::index_iterator
participants (1)
-
Andreas Volz