|
Boost : |
Subject: Re: [boost] [guidelines] why template errors suck
From: David Abrahams (dave_at_[hidden])
Date: 2010-09-28 13:33:04
At Tue, 28 Sep 2010 10:00:54 -0500,
Andrew Sutton wrote:
>
> It seems to me that writing constraints in terms of valid
> expressions gives you flexibility when you want it, but doesn't
> preclude the strengthening of requirements when needed.
It's not that there's anything you *can't* express with valid
expressions, it's that they're difficult to use correctly, and the
most natural way of using them creates a big mess for algorithm
writers. Furthermore, they don't offer any compelling value over the
alternative.
-- 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