Boost logo

Boost :

From: Eric Friedman (ebf_at_[hidden])
Date: 2003-09-11 22:16:37


Hamish Mackenzie wrote:
> On Thu, 2003-09-11 at 12:11, Markus Werle wrote:
> > Probably overloading using boost::enable_if is a solution in this case.
>
> Good call that makes it much nicer.
>
> Is there something similar for using with template classes? Something
like
>
> template< typename T >
> class my_class : enable_if< is_same< T, x >::value >
> {
> };

Isn't this written as

  template <>
  class my_class<x>
  {
  };

?

Eric


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