<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[STL iterator]]></title><description><![CDATA[<p>Also ich hab mir mal gedacht über ein std::set ohne for each zu iterieren.<br />
Nun habe ich folgendes gemacht:</p>
<pre><code class="language-cpp">for(std::set&lt;LPWSTR&gt;::iterator i = PrivateTags.begin(); i &lt; PrivateTags.end(); i++)
{
    if(Tags.find(*i) != Tags.end())
    {
        delete *i;
        PrivateTags.erase(i);
    }
}
</code></pre>
<p>Das könnte jetzt ein kleiner &quot;anfängerfehler&quot; sein, aber ich hab dann halt mal ein paar fehler bekommen(47 stück):<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(_Interface *,_com_ptr_t&lt;_InterfacePtr&gt; &amp;)' : could not deduce template argument for '_Interface *' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(985) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const _Elem *,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const _Elem *' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(141) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2676: binary '&lt;' : 'std::_Tree&lt;_Traits&gt;::iterator' does not define this operator or a conversion to a type acceptable to the predefined operator<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]</p>
<p>Weiß jemand wo der Fehler steckt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182141/stl-iterator</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 12:48:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182141.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 May 2007 20:21:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to STL iterator on Mon, 21 May 2007 20:21:54 GMT]]></title><description><![CDATA[<p>Also ich hab mir mal gedacht über ein std::set ohne for each zu iterieren.<br />
Nun habe ich folgendes gemacht:</p>
<pre><code class="language-cpp">for(std::set&lt;LPWSTR&gt;::iterator i = PrivateTags.begin(); i &lt; PrivateTags.end(); i++)
{
    if(Tags.find(*i) != Tags.end())
    {
        delete *i;
        PrivateTags.erase(i);
    }
}
</code></pre>
<p>Das könnte jetzt ein kleiner &quot;anfängerfehler&quot; sein, aber ich hab dann halt mal ein paar fehler bekommen(47 stück):<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(_Interface *,_com_ptr_t&lt;_InterfacePtr&gt; &amp;)' : could not deduce template argument for '_Interface *' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(985) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool operator &lt;(int,_com_ptr_t&lt;_IIID&gt; &amp;)' : could not deduce template argument for '_com_ptr_t&lt;_IIID&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\comip.h(976) : see declaration of 'operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::stack&lt;_Ty,_Container&gt; &amp;,const std::stack&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::stack&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stack(90) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::queue&lt;_Ty,_Container&gt; &amp;,const std::queue&lt;_Ty,_Container&gt; &amp;)' : could not deduce template argument for 'const std::queue&lt;_Ty,_Container&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\queue(103) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::deque&lt;_Ty,_Alloc&gt; &amp;,const std::deque&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::deque&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\deque(1327) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xtree(1372) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)' : could not deduce template argument for 'const std::list&lt;_Ty,_Ax&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\list(1281) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const _Elem *)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(151) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const _Elem *,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const _Elem *' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(141) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string(131) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::vector&lt;_Ty,_Alloc&gt; &amp;,const std::vector&lt;_Ty,_Alloc&gt; &amp;)' : could not deduce template argument for 'const std::vector&lt;_Ty,_Alloc&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(1276) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1880) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : could not deduce template argument for 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' from 'std::_Tree&lt;_Traits&gt;::iterator'<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]<br />
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\utility(76) : see declaration of 'std::operator &lt;'<br />
.\MView.cpp(265) : error C2676: binary '&lt;' : 'std::_Tree&lt;_Traits&gt;::iterator' does not define this operator or a conversion to a type acceptable to the predefined operator<br />
with<br />
[<br />
_Traits=std::_Tset_traits&lt;LPWSTR ,std::less&lt;LPWSTR &gt;,std::allocator&lt;LPWSTR &gt;,false&gt;<br />
]</p>
<p>Weiß jemand wo der Fehler steckt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289429</guid><dc:creator><![CDATA[STLiterator]]></dc:creator><pubDate>Mon, 21 May 2007 20:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to STL iterator on Mon, 21 May 2007 20:42:31 GMT]]></title><description><![CDATA[<p>Zwei Fehler:</p>
<ol>
<li>Die Abbruchbedingung deiner Schleife musst du mit != statt mit &lt; machen.</li>
<li>Durch erase wird dein Iterator ungültig.</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/1289438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289438</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Mon, 21 May 2007 20:42:31 GMT</pubDate></item></channel></rss>