<div dir="ltr">Hi,<div><br></div><div>  I am trying to serialize out the value of  OpenEXR&#39;s Half type values.</div><div><br></div><div>  I came across mention that custom types requires something like the following</div><div><br></div><div>```</div><div>namespace boost {<br>namespace serialization {<br><br>template&lt;class Archive&gt;<br>void serialize(Archive &amp; ar, half &amp; h, const unsigned int version)<br>{<br>    ar &amp; boost::serialization::make_nvp(&quot;value&quot;, h);<br>}<br><br>} // namespace serialization<br>} // namespace boost<br>```</div><div><br></div><div>  The code compiles but when I run it, it segfaults.</div><div><br></div><div>  Is boost serializer a suitable for such use case ?</div><div><br></div><div>Cheers<br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Nicholas Yue<br><a href="https://www.linkedin.com/in/nicholasyue/" target="_blank">https://www.linkedin.com/in/nicholasyue/</a><br></div></div></div></div>