This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/34124] auto_ptr ambiguous conversion
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2008 20:31:11 -0000
- Subject: [Bug libstdc++/34124] auto_ptr ambiguous conversion
- References: <bug-34124-15372@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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