Boost logo

Boost :

From: Eugene Karpachov (jk_at_[hidden])
Date: 2001-03-19 06:50:45


Sun, Mar 18, 2001 at 03:24:12AM -0800, Jesse Jones ÐÉÛÅÔ:
> >The function could be templated with error-processing policy class. Different
>
> I don't think this is a good idea. If you did this you would force
> clients to templatize their classes if they wanted to support

An implementor could provide reasonable defaults for template arguments.

> customizeable asserts. Better to rely on the preprocessor or function
> pointers.

Then you would force one default behaviour for all logic errors, and library
user will not be able to change it non-intrusively - for example, by
providing custom "smart log-and-abort" functor.

-- 
jk

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