|
Boost : |
Subject: Re: [boost] Unittest capability for meta-programs feedback request
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-28 02:27:42
on Tue Sep 27 2011, Ben Robinson <icaretaker-AT-gmail.com> wrote:
>> Personally I am very uncomfortable with the use of exceptions to deal
>> with failed assertions, and in a test that's just a bunch of
>> compile-time assertions, I don't see *any* advantage whatsoever in using
>> exceptions.
>>
>>
> Exceptions are simply an implementation detail I am using instead of the
> compile error.
Yes; I think it would be better to use a different mechanism.
> One benefit of writing unit tests which show something failing when it
> should, is for regression analysis.
Of course!
> Rather than discussing this point in generalities, I will provide more
> examples of its usage, and hopefully I can better demonstrate the
> usefulness that way.
Good; looking forward to it.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk