Boost logo

Boost :

Subject: Re: [boost] [type_traits] extension has_operator_xxx - conforming to coding guidelines for ICE
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-02-03 18:10:30


> you could try to add an indirection.
>
> template <class T, bool B>
> struct foobar_aux;
>
> template <class T>
> struct foobar : foobar_aux<T, ::boost::is_integral<T>::value> {};

Yes, this looks to be the right solution.
Thanks!
Frédéric


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