[pkg-boost-devel] Bug#839733: boost1.61: Including boost/optional/optional_fwd.hpp without first including boost/config.hpp doesn't compile

Mattia Rizzolo mattia at debian.org
Tue Oct 4 11:12:41 UTC 2016

Package: src:boost1.61
Version: 1.61.0+dfsg-2.1
Severity: normal
Tags: patch upstream fixed-upstream
Forwarded: https://svn.boost.org/trac/boost/ticket/12179

From the upstream bug:

This code does not compile;

#include <boost/optional/optional_fwd.hpp>

int main() {

return 0;


It seems this is because optional_fwd.hpp tries to only depend on
boost/config/suffix.hpp, but this file itself depends on other config
macros that need to be included first.

I have been able to workaround this issue by including boost/config.hpp
before optional_fwd.hpp

The very easy fix is at https://github.com/boostorg/optional/pull/19
Could you please pull the change in Debian too?

                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20161004/ac40cc64/attachment.sig>

More information about the pkg-boost-devel mailing list