[MultiIndex] Doc error?

Hello, I'm wondering if it's am error in the doc of MultiIndex at http://www.boost.org/libs/multi_index/doc/tutorial.html In one of the sample code for "Sequenced indices", it reads *(s.begin())==1; // ERROR: the element cannot be changed It seems to be, according the intention of the author *(s.begin())=1; // ERROR: the element cannot be changed Thanks Max

On 8/13/06, Wang Weiwei <wwwang@ccsdl.org> wrote:
Hello, I'm wondering if it's am error in the doc of MultiIndex at http://www.boost.org/libs/multi_index/doc/tutorial.html
In one of the sample code for "Sequenced indices", it reads
*(s.begin())==1; // ERROR: the element cannot be changed
It seems to be, according the intention of the author
*(s.begin())=1; // ERROR: the element cannot be changed
Yes, it is a typo. It has been corrected for 1.34. I recommend you to check out that branch from cvs, there are some exciting new features in the library. Best Regards Matias
participants (2)
-
Matias Capeletto
-
Wang Weiwei