|
Boost : |
From: Ostensen, Jarl (JOstensen_at_[hidden])
Date: 2003-08-21 05:28:26
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk