Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Compiler-generated functions and operators: A pain?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="JohnQ, post: 2600428"] In "The Design and Evolution of C++" (1994) on pg. 76, Stroustrup gives his rationale for the concept of structs and classes being the same. Knowing that I consciously always use structs and classes as distinctly different animals, I would have not burdened classes with the C struct concept, I think. But then again, deriving from a struct and then being able to use the derived class as a struct may be enough to appreciate the way he chose to define it: making classes from Windows structures like POINT (tagPOINT?) for example, which makes it easy to manipulate point data while still being able to automagically pass the class object instance to a function requiring the POINT structure. John [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Compiler-generated functions and operators: A pain?
Top