|
Boost Users : |
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/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net