Subject: Re: [boost] [Boost.utility]
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2010-01-26 11:15:38
Rob Stewart wrote:
> > Doing so avoids the mess that ensues when trying to unit test classes
> > and functions that use supposed singletons/global state.
> I can't argue with that.
> It is also easier to unit test functions returning error codes,
> but that shouldn't be the only factor in design.
A try/catch block may not be beautiful, but calling it a mess like trying to unit test a side-effect full function doesn't seem appropriate.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk