Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-08-18 08:05:22


From: John Torjo <john.lists_at_[hidden]>
>
> You're right. What comes to mind, is to have an extra parameter:
> bool add_even_if_name_exists.
>
> So, if passing 'false', if "display" already exists, it's not added. If
> passing 'true', "display" is added even if it exists.

I suggest using an enumerated type. When called from user code,
"true" and "false" convey no information. Enumerators can make
the call self-documenting.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk