Boost logo

Boost :

Subject: Re: [boost] enable_if and non-template member functions?
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-08-13 04:04:37


> In case of no-parameter functions or operators, what's wrong with:

Frankly it's easier and cleaner to just put a static assert in the function
body - the effect is the same - a compiler error if the operation isn't
supported - and you at least get an error message that doesn't make it look
like your code is broken ;-)

John.


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