[C++-sig] Limits of implicitly_convertible?
Hans Meine
hans_meine at gmx.net
Fri Nov 18 09:02:51 CET 2005
Hi!
I could not get implicitly_convertible<list, MyVector>() to work *at all*, so
I tried the example from the documentation. (BTW: My compiler told me that
operator int() had to be const, that should probably be fixed in the docs.)
That simple example worked, but when I changed the constructor to take a list
instead of an int, it ceased working. Attached you'll find a minimal
testcase.
--
Ciao, / / .o.
/--/ ..o
/ / ANS ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit.cpp
Type: text/x-c++src
Size: 412 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051118/74facba2/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit.py
Type: application/x-python
Size: 86 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051118/74facba2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051118/74facba2/attachment.pgp>
More information about the Cplusplus-sig
mailing list