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++
Must assignment be a member function always?
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="Ioannis Vranos, post: 3243416"] In TC++PL3 on page 676, it is mentioned at the bottom: "I introduced a new Vector (rather than using a valarray) because I needed to define assignment (and assignment must be a member function; 11.2.2). However, valarray is a strong candidate for the representation of that Vector". OK, the assignment must be defined in a way that performs the evaluation of U=M*V+W, so we can't use a valarray directly since it has its assignment operations already defined. However (and having checked 11.2.2 where I did not find something relevant), "must assignment be a member function" always? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Must assignment be a member function always?
Top