Opened 7 years ago

Closed 7 years ago

#11525 closed Bugs (invalid)

Cannot serialize a pointer to fundamental type.

Reported by: Kohei Takahashi <flast@…> 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.

see: http://melpon.org/wandbox/permlink/0mvDGZ0e1OsLwrfE

Change History (1)

comment:1 by Robert Ramey, 7 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.