<div dir="ltr">Hi,<div><br></div><div> I am trying to serialize out the value of OpenEXR'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<class Archive><br>void serialize(Archive & ar, half & h, const unsigned int version)<br>{<br> ar & boost::serialization::make_nvp("value", 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>