Boost logo

Boost :

Subject: Re: [boost] enable_if : how to make it work in the case of templated method of a template base inherited several times
From: John Wiegley (jwiegley_at_[hidden])
Date: 2011-10-20 19:06:08

>>>>> Matt Calabrese <rivorus_at_[hidden]> writes:

> First, why are you using enable_if here at all? Is there something wrong
> with: void f(T p )

It could be useful to deny conversions at compile time, with the int/double
example being just a demonstration.

  John Wiegley
  BoostPro Computing, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at