Am Mittwoch, 6. Oktober 2004 12:34 schrieb Christophe de VIENNE: > I'd see the convertion more in what() than in the constructor. The > reason for that is that such operation should be defered as possible, if > done at all (not using what() will avoid completely the convertion) > > >What do you think? > > Only good thing. I'd vote +1 to do this modification. > > > Regards, > > Christophe Defering is good, but I would derive Exception from runtime_error, which needs a std::string in constructor, so the conversion need to be done in the constructor.
Another possible solution is to use runtime_error, give the constructor a empty string and override what(). Tommi
