$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Nicholas Yue (yue.nicholas_at_[hidden])
Date: 2023-02-17 05:07:37
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/