Boost logo

Boost :

From: Jason House (jhouse_at_[hidden])
Date: 2003-08-21 09:27:52

I won't claim to be an expert, but I believe that the proper approach is
template specialization... A specialization is always taken over the
generic templated function...

Ostensen, Jarl wrote:
> In the function library the function class, (in function_template.hpp), defines a templated
> single-argument constructor and a copy-constructor.
> How can the compiler ever pick the copy-constructor??
> I have experimented with something like this using the VC 7.1 compiler,
> and found that it consequently picks the templated ctor instead of the
> copy ctor. Only by using an enable_if-construct was I able to make it do
> what I wanted. (Unless it was explicit, of course.)
> Is this just an MSVC issue?
> Please enlighten me.... 8)
> -=jarl
> p.s.
> I have been looking at the latest boost libraries as obtained from CVS.
> _______________________________________________
> Unsubscribe & other changes:

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