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++
conditions for automatic generation of default ctor, copy ctor,and default assignment operator (oper
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="Andrey Tarasevich, post: 3524618"] Sorry, but what you said doesn't seem to make much sense. Firstly, there's no const type in this example. Secondly, when user does actually use an initializer of const type, the constructor that takes a non-const reference will not even qualify as a viable function. So no, it will not supersede anything. The behavior will be exactly opposite of what you said. How did you manage to derive these strange conclusions from the previous post from James is a mystery to me. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
conditions for automatic generation of default ctor, copy ctor,and default assignment operator (oper
Top