Modify

Ticket #1822 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

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:

Description

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>

Attachments

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

Change History

comment:1 Changed 6 years ago by kasparek@…

Hello,

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 6 years ago by ramey

  • Owner changed from ramey to matias

matias - could you take a look at this please?

Robert Ramey

Changed 6 years ago by anonymous

Possible fix as posted for Gentoo bug #215368

comment:3 Changed 6 years ago by troyer

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

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.