compile bug in boost 1.74 with serialization

Bug #1941909 reported by viot
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
boost-defaults (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The version 1.74 of the boost library has a bug in boost/serialization/optional.hpp
For instance, the code
#include <boost/serialization/optional.hpp>
int main () {
  return 0;
}
gives an error for the compilation.
This problem is solved in the version 1.75.
Is it possible to update the version?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in boost-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Jerry Quinn (jlquinn) wrote :

More details in upstream bug report https://github.com/boostorg/serialization/issues/219

In case others see this report, you can work around the issue as described in
https://github.com/jngrad/espresso/commit/f33faf09ab26131bd38c2b8bd33efd35679134a3

Insert the following code before other uses of serialization:

// Workaround for bug in boost 1.74
// https://github.com/boostorg/serialization/issues/219
// Shows up on ubuntu 22.04
#include <boost/serialization/version.hpp>
#if BOOST_VERSION / 100000 == 1 && BOOST_VERSION / 100 % 1000 == 74
#include <boost/serialization/library_version_type.hpp>
#endif

summary: - bug in boost 1.74
+ compile bug in boost 1.74 with serialization
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.