
30 Jul
2014
30 Jul
'14
1:49 p.m.
On 7/29/14, 5:53 PM, Joaquin M Lopez Munoz wrote:
I think you need to write
byHashedIndex &p = multiIndex_.template get<3>();
(note the extra "template"). You might want to check the excellent explanation on templates and dependent names given at http://tinyurl.com/cmlqhcr .
Thanks as always Joaquin, this solves the compilation error. I might have misunderstood how hashed indices work, because I don't know if multi index is suitable for fast retrieval of, for instance, all 128-bit integers that have MSB equal to 3? Something akin to a simple std::unordered_multimap with better storage? It's a fairly complex library, I must admit :) Thanks!