This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/34124] auto_ptr ambiguous conversion



------- Comment #2 from pcarlini at suse dot de  2008-01-25 20:31 -------
There isn't much to say: both the templated constructor and the templated
conversion operator must be there per the current C++ standard, and your code
cannot compile. Note that, in general, the design of auto_ptr is considered
seriously broken and therefore it will be deprecated for the next standard and
unique_ptr provided as replacement.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34124


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]