Opened 10 years ago
Last modified 10 years ago
#7792 new Bugs
Boost serialization is incompatible with final keyword
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | serialization |
| Version: | Boost 1.52.0 | Severity: | Problem |
| Keywords: | serialization final | Cc: |
Description
When a class is marked as final using the C++11 final keyword it is not possible to serialize it using boost::serialization, because compilation fails while instantiating boost::detail::is_polymorphic_imp1<...>.
A minimal example is attached in main.cpp. The output of Visual Studio 2012 SP1 attempting to compile this example can be found in BoostSerializationBugReport.log.
Attachments (2)
Change History (3)
by , 10 years ago
by , 10 years ago
| Attachment: | BoostSerializationBugReport.log added |
|---|
The build log generated by Visual Studio 2012 SP1 when building main.cpp.
comment:1 by , 10 years ago
| Owner: | changed from to |
|---|
this is really an issue of "is_polymorphic". So I'm passing this on to the experts on this.
Robert Ramey
Note:
See TracTickets
for help on using tickets.

Minimal example resulting in the error.