Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
| 
| Lars> It breaks the "I allocate, I deallocate" idom.
| 
| Lars> I'd rather see a Menu & passed in that case. That is the clean
| Lars> way of avoiding a copy.
| 
| That's what I did, but I wondered whether it was a good idea. Another
| (cleaner?) solution is maybe to provide an iterator instead of
| building these useless vectors (for example for the list of
| references or maybe even the TOC).

There is nothing "unclean" about passing a ref to vector, but a
iterator is also nice.

        Lgb



Reply via email to