[Bug libstdc++/23781] Implicit conversion from NULL to list<T>::iterator
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Sep 8 21:06:00 GMT 2005
------- Additional Comments From pcarlini at suse dot de 2005-09-08 21:06 -------
(In reply to comment #2)
> We don't accept
>
> #include <vector>
> #include <string>
>
> int main()
> {
> using namespace std;
> vector<string>::iterator p = NULL;
> }
>
> for proper type checking. The list iterator constructor accepting a
> pointer should be explicit.
Agreed. Likewise for deque::iterator, I suppose. I will work on this.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-08 21:06:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23781
More information about the Gcc-bugs
mailing list