
23 Mar
2009
23 Mar
'09
7:18 a.m.
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