Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-09 13:42:26


AMDG

joel falcou wrote:
> Considering the scope of these two libraries, I still wonder which one to
> use in some cases. For example, let's say I have a set of functions that
> can only take integers as parameters, what's the correct practice : use
> enable_if to have SFINAE makes the compiler outputs something like
> "no such fonction" or have a concept check for Integer and have
> a concept related error indicating people what happens.
>
> Is
> there any policies or is this a matter of tastes ?
>

If you might want another function to be selected instead, use enable_if
If you just want an error message use concept checks.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net