Abdelrazak Younes <[EMAIL PROTECTED]> writes: > As there are only two options, a bool might be cleaner: > bool autoOpenFile(string const & filename, bool const edit = false) > { > command = edit? "edit": "open"; > } > But that's not very important anyway...
Scott Meyers says that an enum is preferable in such a circumstance because an enum is self-documenting. So stick with the guru ;-) Angus