Boost logo

Boost :

From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2003-12-05 11:04:02


> Can we add conditional preprocessor guards around the contents of the
> enable_if.hpp header so that the templates are only defined on
> supporting compilers?
>

Ok, I'm guarding it with BOOST_NO_SFINAE, then any use of enable_if on
a compiler which does not support SFINAE is an error.
This is the safe way, (compared to providing dummy definitions that
do not give the desired behavior).

  Jaakko

> Particularly troubling is that inclusion on compilers without template
> partial specialization results in parsing errors -- that is, even if
> enable_if is never used.
>
> Another option: provide dummy declarations that always fail on
> unsupported platforms.
>
> Thanks,
> Eric
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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