Opened 7 years ago
Closed 7 years ago
#11525 closed Bugs (invalid)
Cannot serialize a pointer to fundamental type.
Reported by: | Owned by: | Robert Ramey | |
---|---|---|---|
Milestone: | To Be Determined | Component: | serialization |
Version: | Boost 1.58.0 | Severity: | Problem |
Keywords: | Cc: |
Description
It seems that boost::archive::detail::pointer_oserializer
doesn't accept a pointer to fundamental type, i.e. it assumes a pointer to class type.
Note:
See TracTickets
for help on using tickets.
this is a feature. It's described in the documentation. The reasons for this rule are also there (somewhere). Sorry I can't point to the exact spot, but it's in there.
If you need to do this - wrap it in a unique type.