17 Feb
2023
17 Feb
'23
5:07 a.m.
Hi, I am trying to serialize out the value of OpenEXR's Half type values. I came across mention that custom types requires something like the following ``` namespace boost { namespace serialization { template<class Archive> void serialize(Archive & ar, half & h, const unsigned int version) { ar & boost::serialization::make_nvp("value", h); } } // namespace serialization } // namespace boost ``` The code compiles but when I run it, it segfaults. Is boost serializer a suitable for such use case ? Cheers -- Nicholas Yue https://www.linkedin.com/in/nicholasyue/