<p>The snippet you will need for versioning will be this...</p>
<pre><code>namespace boost {
namespace serialization {
template<>
template<typename SortPolicy>
struct version<LSHSearch<SortPolicy>>
{
typedef mpl::int_<1> type;
typedef mpl::integral_c_tag tag;
BOOST_STATIC_CONSTANT(int, value = version::type::value);
BOOST_MPL_ASSERT((
boost::mpl::less<
boost::mpl::int_<N>, boost::mpl::int_<256>>
));
};
</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;">—<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>