<p>The snippet you will need for versioning will be this...</p>

<pre><code>namespace boost {
namespace serialization {

template&lt;&gt;
template&lt;typename SortPolicy&gt;
struct version&lt;LSHSearch&lt;SortPolicy&gt;&gt;
{
  typedef mpl::int_&lt;1&gt; type;
  typedef mpl::integral_c_tag tag;
  BOOST_STATIC_CONSTANT(int, value = version::type::value);
  BOOST_MPL_ASSERT((
    boost::mpl::less&lt;
        boost::mpl::int_&lt;N&gt;, boost::mpl::int_&lt;256&gt;&gt;
  ));
};
</code></pre>

<p>It might be worth making a nice macro for this situation, or some class or something that is easy to overload.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/663#issuecomment-223006908">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFKNswH5ePFaS__OIv04jGCFWOTrqks5qHZThgaJpZM4Iq6tl">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFEhQIlJzC1neutoy1nvP4Qr_WdwDks5qHZThgaJpZM4Iq6tl.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/pull/663#issuecomment-223006908"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>