2006/12/10, je.a.le <
je.a.le@...>:
> in nArray.h (code/nebula2/inc/util), function :
>
> TYPE& At(int index);
>
> must be :
>
> TYPE& At(int index) const;
>
> else compiling (may) raise and error
>
hi,
Notice the comment of the method, it may grow the array if the index
is outside the array range. Use operator [], which has the const
modifier.
Regards,
kaikai
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV*** NOTE: To reply to the list use "reply to all", ***
*** to reply direct to the sender use "reply" ***
_______________________________________________
Nebuladevice-discuss mailing list
Nebuladevice-discuss@...
https://lists.sourceforge.net/lists/listinfo/nebuladevice-discuss