[Boost-bugs] [Boost C++ Libraries] #5197: Forward declarations from std:: not allowed in libc++

Subject: [Boost-bugs] [Boost C++ Libraries] #5197: Forward declarations from std:: not allowed in libc++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-16 19:31:52


#5197: Forward declarations from std:: not allowed in libc++
------------------------------+---------------------------------------------
 Reporter: chrisj | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 interprocess uses the forward declarations from std::

 template <class T>
 class allocator;

 template <class T>
 struct less;

 template <class T1, class T2>
 struct pair;

 template <class CharType>
 struct char_traits;

 libc++ does not support these. There are various possible fixes. These
 forward declarations could just be replaced by the headers:

 #include <utility>
 #include <memory>
 #include <functional>
 #include <iosfwd>

 or we could introduce a macro ( BOOST_ALLOWS_FWD_STD_DECLARATIONS ), or
 create a detail header for forward declarations.

 I am happy to implement any of these, I am interested what the developers
 of interprocess think.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5197>
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:05 UTC