error C2582: 'operator =' function is unavailable. (xutility)
<p>I'm getting an error occurring in the 'xutility' class - It is locked as I did not create it</p>

<pre><code>error C2582: 'operator =' function is unavailable in 'Agent'
</code></pre>

<p>The error points to these lines in the code:</p>

<pre><code>    // TEMPLATE FUNCTION move
template&lt;class _InIt,
class _OutIt&gt; inline
_OutIt _Move(_InIt _First, _InIt _Last,
    _OutIt _Dest, _Nonscalar_ptr_iterator_tag)
{   // move [_First, _Last) to [_Dest, ...), arbitrary iterators
for (; _First != _Last; ++_Dest, ++_First)
    *_Dest = _STD move(*_First); // this line has the error
return (_Dest);
}
</code></pre>

<p>Why is this occurring? What does it mean and how can I fix it?</p>

<p>EDIT - this is what I grabbed from the output, can someone help me understand this? Sorry to be a complete newbie...</p>

<pre><code>1&gt;------ Build started: Project: D3D10DEMO, Configuration: Debug Win32 ------
1&gt;  Level.cpp
1&gt;c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\level.cpp(449): warning     C4018: '&lt;' : signed/unsigned mismatch
1&gt;  Brain.cpp
1&gt;c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.cpp(43): warning C4413: 'Brain::nodes' : reference member is initialized to a temporary that doesn't persist after the  constructor exits
1&gt;          c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.h(34) : see declaration of 'Brain::nodes'
1&gt;c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.cpp(43): warning C4413: 'Brain::roomNodeVectors' : reference member is initialized to a temporary that doesn't persist after the constructor exits
1&gt;          c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.h(35) : see declaration of 'Brain::roomNodeVectors'
1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2514): error C2582: 'operator =' function is unavailable in 'Agent'
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2535) : see   reference to function template instantiation '_OutIt std::_Move&lt;_InIt,_OutIt&gt; (_InIt,_InIt,_OutIt,std::_Nonscalar_ptr_iterator_tag)' being compiled
1&gt;          with
1&gt;          [
1&gt;              _OutIt=Agent *,
1&gt;              _InIt=Agent *
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(1170) : see reference to function template instantiation '_OutIt std::_Move&lt;Agent*,Agent*&gt;(_InIt,_InIt,_OutIt)' being compiled
1&gt;          with
1&gt;          [
1&gt;              _OutIt=Agent *,
1&gt;              _InIt=Agent *
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(1165) : while compiling class template member function 'std::_Vector_iterator&lt;_Myvec&gt; std::vector&lt;_Ty&gt;::erase(std::_Vector_const_iterator&lt;_Myvec&gt;)'
1&gt;          with
1&gt;          [
1&gt;              _Myvec=std::_Vector_val&lt;Agent,std::allocator&lt;Agent&gt;&gt;,
1&gt;              _Ty=Agent
1&gt;          ]
1&gt;          c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.h(41) : see reference to class template instantiation 'std::vector&lt;_Ty&gt;' being compiled
1&gt;          with
1&gt;          [
1&gt;              _Ty=Agent
1&gt;          ]
1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2514): error C2582: 'operator =' function is unavailable in 'Pickup'
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2535) : see reference to function template instantiation '_OutIt std::_Move&lt;_InIt,_OutIt&gt;(_InIt,_InIt,_OutIt,std::_Nonscalar_ptr_iterator_tag)' being compiled
1&gt;          with
1&gt;          [
1&gt;              _OutIt=Pickup *,
1&gt;              _InIt=Pickup *
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(1170) : see reference to function template instantiation '_OutIt std::_Move&lt;Pickup*,Pickup*&gt;(_InIt,_InIt,_OutIt)' being compiled
1&gt;          with
1&gt;          [
1&gt;              _OutIt=Pickup *,
1&gt;              _InIt=Pickup *
1&gt;          ]
1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(1165) : while compiling class template member function 'std::_Vector_iterator&lt;_Myvec&gt; std::vector&lt;_Ty&gt;::erase(std::_Vector_const_iterator&lt;_Myvec&gt;)'
1&gt;          with
1&gt;          [
1&gt;              _Myvec=std::_Vector_val&lt;Pickup,std::allocator&lt;Pickup&gt;&gt;,
1&gt;              _Ty=Pickup
1&gt;          ]
1&gt;          c:\users\asher\documents\my dropbox\direct3d\d3d10demo_1.0\d3d10demo\brain.h(44) : see reference to class template instantiation 'std::vector&lt;_Ty&gt;' being compiled
1&gt;          with
1&gt;          [
1&gt;              _Ty=Pickup
1&gt;          ]
1&gt;  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
</code></pre>
