Search:
Forum
Beginners
Confusion with this site's tutorial on "
Confusion with this site's tutorial on "explicit" typecasting
Dec 24, 2013 at 4:35pm UTC
abhishekm71
(820)
I am studying the tutorial on this website, for explicit keyword for typecasting
http://www.cplusplus.com/doc/tutorial/typecasting/
It is quoted:
Additionally, constructors marked with explicit cannot be called with the assignment-like syntax; In the above example, bar could not have been constructed with:
A bar = foo;
I don't understand, shouldn't it be:
B bar = foo;
Last edited on
Dec 24, 2013 at 4:35pm UTC
Dec 24, 2013 at 7:08pm UTC
Catfish666
(666)
Good work, you found a mistake. Report it here:
http://www.cplusplus.com/contact.do?referrer=www.cplusplus.com%2Fdoc%2Ftutorial%2Ftypecasting%2F
Dec 25, 2013 at 3:11am UTC
abhishekm71
(820)
@Catfish666 Thanks! Reported.
Dec 25, 2013 at 3:15am UTC
tudonghoadanang
(2)
mistake of forum ?
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs