trouble with correct type definition of multi_index::nth_index

Hi,
In the following code I am trying to get an handle to the index of a
multi_index container. The compiler says
"invalid initialization of reference of type
‘boost::multi_index::detail:..". Not sure why this is so. Since I
wasn't sure about the source of error I have pasted the full code (
sans declarations) is give below.
Thanks
sandeep
///-------------------------Full code ---------------------
template

Sandeep Gupta escribió:
Hi, In the following code I am trying to get an handle to the index of a multi_index container. The compiler says "invalid initialization of reference of type ‘boost::multi_index::detail:..". Not sure why this is so. Since I wasn't sure about the source of error I have pasted the full code ( sans declarations) is give below. [...]
tuplestore_index_t& indexx = m_tuplestore.get<n>();
Haven't looked in detail, but I think there's a missing 'template' keyword here: tuplestore_index_t& indexx = m_tuplestore.template get<n>(); Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (2)
-
joaquin@tid.es
-
Sandeep Gupta