Lior Silberman <[EMAIL PROTECTED]> writes:

| > If we want to do this exception safe we have to do something like:
| > 
| > build_men(Menu & m) {
| >         Menu me;
| >         ...; // populate me
| >         m.swap(me);
| > }
| > 
| > to avoid half populated objects, and objects in unknown state.
| > 
| >         Lgb
| > 
| > 
| 
| I think we return here to the current situation:
| (which does avoid all the copying)
| 
| void Menu::expand (Menu & tomenu, Buffer * buf)
| {
|       // populate tomenu
| }

Ok, but don't forget what I said about exception safety.

        Lgb

Reply via email to