|
Boost : |
From: Thomas Witt (witt_at_[hidden])
Date: 2002-05-10 04:08:38
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 10 May 2002 10:55, Gennadiy Rozental wrote:
>
> MSVC responce:
> error C2664: '__thiscall B::B(const struct B &)' : cannot convert parameter
> 1 from 'const struct A<struct C>' to 'const struct B &'
> Reason: cannot convert from 'const struct A<struct C>' to 'const
> struct B'
> No constructor could take the source type, or constructor overload
> resolution was ambiguous
> see reference to function template instantiation '__thiscall A<struct
> B>::A<struct B>(const struct A<struct C> &)' being compiled
>
Ok after looking at the implementation(Yes I should have done this inthe first
place) here is my next shot.
IIUC the problem is that there is an conversion "template <class T> A(A<T>
const&);" and thats what is_convertible can detect.
It does _not_ detect whether it is actually usable, as it does not instantiate
it.
Thomas
- --
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8244a0ds/gS3XsBoRAgIoAJ9GkCSkZ62Ny5C+dx7kkUwSZNFJMwCeJA9H
oQla/U+ESsXApZkPEY5HEXY=
=Zh8M
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk