Topic: Syntax With ++: BOOST_FOREACH vs shared_ptr
Prompt how correctly to write down, please, syntax with ++ for the given constructions: typedef std:: shared_ptr <const CMyClass> CMyClassRef; class CMyClass {public: const std:: vector <int> vValues;...} How correctly to write syntax on search of values? CMyClassRef myClassRef;.... BOOST_FOREACH (int value, myClassRef.vValues) {//it is worked with value value} at such record writes an error what is not true? How correctly to write down?