9 Jul
2012
9 Jul
'12
11:07 a.m.
I am having a problem compiling though, I get error c2247 when I try to use the square bracket operator [] to access a randomly indexed item. The error message says that this is an inheritance issue with the protected status of the operator...
c:\program files\microsoft visual studio\myprojects\xmltest\xmltest\xmltestapp.cpp(899) : error C2247: 'boost::multi_index::detail::random_access_index
::operator []' not accessible because 'boost::multi_index::detail::ordered_index ' uses 'protected' to inherit from 'boost::multi_index::detail::random_access_index ' Are you trying to copy an index? If you store an index returned by MIC in a variable, define it as reference.
Oops, sorry for the noise, it was irrelevant.