Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost][enable_if] SFINAE and decltype
From: Germán Diago (germandiago_at_[hidden])
Date: 2011-04-28 16:13:04


> If you want the function to fail anyway, why not use the first version (that
> doesn't SFINAE on errors)?  Otherwise, try changing your !decltype version
> to:
>
> template <class Range, class T>
> Range find(Range && haystack, const T& elem, ...) {
>  // body
> }
>

The problem is that I want meaningful error messages, and for that the
assertion should
be printed when compiling but it does not.

> -- Jeremiah Willcock
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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