Opened 11 years ago

Closed 10 years ago

#1822 closed Bugs (fixed)

header dependency in boost/serialization/map.hpp

Reported by: stefan_heinzmann@… Owned by: Matias Capeletto
Milestone: To Be Determined Component: serialization
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:


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:

 : error C2039: 'and_' : is not a member of 'boost::mpl'
: see reference to class template instantiation
'boost::serialization::is_bitwise_serializable<std::pair<_Ty1,_Ty2>>' being
 : error C2504: 'and_' : base class undefined
 : error C2143: syntax error : missing ',' before '<'

Adding another include line before the existing one makes the compile succeed:

#include <boost/mpl/and.hpp>

Attachments (1)

06_all_1.35.0-0002-serialisation-utility-include.patch (393 bytes) - added by anonymous 10 years ago.
Possible fix as posted for Gentoo bug #215368

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by kasparek@…


I got the same with gcc (4.1,4.2,4.3):

/usr/local/include/boost/serialization/utility.hpp:48: error: expected template-name before '<' token /usr/local/include/boost/serialization/utility.hpp:48: error: expected `{' before '<' token /usr/local/include/boost/serialization/utility.hpp:48: error: expected unqualified-id before '<' token

Adding #include <boost/mpl/and.hpp> solved the problem for mee too.

comment:2 Changed 11 years ago by Robert Ramey

Owner: changed from Robert Ramey to Matias Capeletto

matias - could you take a look at this please?

Robert Ramey

Changed 10 years ago by anonymous

Possible fix as posted for Gentoo bug #215368

comment:3 Changed 10 years ago by Matthias Troyer

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.