[Boost-bugs] [Boost C++ Libraries] #12179: Including boost/optional/optional_fwd.hpp without first including boost/config.hpp doesn't compile.

Subject: [Boost-bugs] [Boost C++ Libraries] #12179: Including boost/optional/optional_fwd.hpp without first including boost/config.hpp doesn't compile.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-05 15:21:45


#12179: Including boost/optional/optional_fwd.hpp without first including
boost/config.hpp doesn't compile.
------------------------------+-----------------------
 Reporter: c.d.glover@… | Owner: fcacciola
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: optional
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12179>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC