Opened 10 years ago

Last modified 10 years ago

#7792 new Bugs

Boost serialization is incompatible with final keyword

Reported by: Marco Wannemaker <marco.wannemaker@…> 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)

main.cpp (932 bytes ) - added by Marco Wannemaker <marco.wannemaker@…> 10 years ago.
Minimal example resulting in the error.
BoostSerializationBugReport.log (9.7 KB ) - added by Marco Wannemaker <marco.wannemaker@…> 10 years ago.
The build log generated by Visual Studio 2012 SP1 when building main.cpp.

Download all attachments as: .zip

Change History (3)

by Marco Wannemaker <marco.wannemaker@…>, 10 years ago

Attachment: main.cpp added

Minimal example resulting in the error.

by Marco Wannemaker <marco.wannemaker@…>, 10 years ago

The build log generated by Visual Studio 2012 SP1 when building main.cpp.

comment:1 by Robert Ramey, 10 years ago

Owner: changed from Robert Ramey to John Maddock

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.