Opened 9 years ago

Closed 9 years ago

#1822 closed Bugs (fixed)

header dependency in boost/serialization/map.hpp

Reported by: stefan_heinzmann@… Owned by: matias
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 9 years ago.
Possible fix as posted for Gentoo bug #215368

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 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 9 years ago by ramey

  • Owner changed from ramey to matias

matias - could you take a look at this please?

Robert Ramey

Changed 9 years ago by anonymous

Possible fix as posted for Gentoo bug #215368

comment:3 Changed 9 years ago by troyer

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain matias.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.