[Boost-bugs] [Boost C++ Libraries] #1822: header dependency in boost/serialization/map.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #1822: header dependency in boost/serialization/map.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-13 16:18:32


#1822: header dependency in boost/serialization/map.hpp
----------------------------------------+-----------------------------------
 Reporter: stefan_heinzmann_at_[hidden] | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------------------
 this very simple program here didn't compile with msvc-8.0 and boost 1.35:
 {{{
 // bugtest-boost-1.35-mpl.cpp

 #include <boost/serialization/map.hpp>

 int main(int argc, char* argv[])
 {
         return 0;
 }
 }}}
 The compiler outputs those error lines:
 {{{
 d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48)
  : error C2039: 'and_' : is not a member of 'boost::mpl'
     d:\src\libs\boost\include\boost-
 1_35\boost\serialization\utility.hpp(50)
 : see reference to class template instantiation
 'boost::serialization::is_bitwise_serializable<std::pair<_Ty1,_Ty2>>'
 being
  compiled
 d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48)
  : error C2504: 'and_' : base class undefined
 d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48)
  : error C2143: syntax error : missing ',' before '<'
 }}}
 Adding another include line before the existing one makes the compile
 succeed:
 {{{
 #include <boost/mpl/and.hpp>
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1822>
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:49:57 UTC