Hello,<br><br>&nbsp;&nbsp;&nbsp; When trying to serialize a STL map, doing the following (in Visual C++ 7.1):<br><br>class Being<br>{<br>private:<br>&nbsp;&nbsp;&nbsp; std::wstring Name, Description;<br>&nbsp;&nbsp;&nbsp; friend class boost::serialization::access;<br>
public:<br>&nbsp;&nbsp;&nbsp; template&lt;class Archive&gt;<br>&nbsp;&nbsp;&nbsp; void serialize(Archive &amp; ar, const unsigned int version)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ar &amp; this-&gt;Name;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ar &amp; this-&gt;Description;<br>&nbsp;&nbsp;&nbsp; }<br>};<br><br>
class Ecosystem<br>{<br>private:<br>&nbsp;&nbsp;&nbsp; friend class boost::serialization::access;<br>&nbsp;&nbsp;&nbsp; std::map&lt;std::wstring,Being&gt; Beings;<br>public:<br>&nbsp;&nbsp;&nbsp; template&lt;class Archive&gt;<br>&nbsp;&nbsp;&nbsp; void serialize(Archive &amp; ar, const unsigned int version)
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ar &amp; this-&gt;Beings;<br>&nbsp;&nbsp;&nbsp; }<br>};<br><br>...<br>ar &amp; ecosystem;&nbsp;&nbsp; // Making the serialization within some function (storing)<br>...<br><br>&nbsp;&nbsp;&nbsp; I get this compile-time error:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;c:\Boost\include\boost-1_33_1\boost\serialization\access.hpp(109): error C2039: 'serialize' : is not a member of&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'std::map&lt;_Kty,_Ty&gt;' with [_Kty=std::wstring,_Ty=Models::Beings]&quot;<br><br><br>&nbsp;&nbsp; Has anyone any ideas about the reason for this error?<br>&nbsp;&nbsp; Thanking you in advance,<br><br><br>&nbsp;&nbsp; David
<br><br>