<p>First of all, I'm rather new to c++ so forgive me if this is a misunderstanding on my part.</p>
<p>When attempting to serialize mlpack::gmm::GMM both boost serialization and cereal are unable to find a serialization function. From gmm.hpp:</p>
<pre><code>/**
* Serialize the GMM.
*/
template<typename Archive>
void Serialize(Archive& ar, const unsigned int /* version */);
</code></pre>
<p>So the function is there, but it is named Serialize with a capital S while both boost and cereal expect it to start with a lowercase s. I changed the function declaration to:</p>
<pre><code>/**
* Serialize the GMM.
*/
template<class Archive>
void serialize(Archive& ar, const unsigned int version);
</code></pre>
<p>Along with the corresponding edits in gmm_impl.hpp, and now it works fine with boost serialization. I have not tested it with cereal, but i assume it should work there too. </p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/644">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMqfK8gIWIISURFysf2ZN2B7RBHiks5qEthzgaJpZM4IlWxP.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/issues/644"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>