This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The first of these two initializations is known as 'copy-initialization' the second as 'direct-initialization'. Normally they are the same, but in the case where the left side is an object of class-type, there is a difference.> 15 auto_ptr<A> a = f(); > 15 auto_ptr<A> a(f()); >
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |