Boost logo

Boost Users :

Subject: Re: [Boost-users] enable_if catch all?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-18 13:31:26


AMDG

Zachary Turner wrote:
> Supposing I have 4 or 5 mutually exclusive overloads of a function
> using enable_if as a function parameter with a default argument, is
> there any way for me to provide an additional version of this function
> that handles every other case, without manually combining all the
> previous cases and using another enable_if?
>

Not that I know of. You would have to make the fallback less
specialized than any of the enable_if'ed overloads.

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