Boost logo

Boost :

From: Ostensen, Jarl (JOstensen_at_[hidden])
Date: 2003-08-21 09:46:49


Ok, so I found this in the standard;

        [12.8/2 note 4]

        Because a template constructor is never a copy constructor, the presence of such a template does not suppress the implicit declaration of a copy constructor.

I take it MSVC 7.1 is broken with regards to this then?

-=jarl

-----Original Message-----
From: Ostensen, Jarl
Sent: 21 August 2003 11:28
To: Boost mailing list
Subject: [boost] Newbie question

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: http://lists.boost.org/mailman/listinfo.cgi/boost


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