Opened 15 years ago

Closed 14 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:

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 (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 by kasparek@…, 15 years ago

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 by Robert Ramey, 15 years ago

Owner: changed from Robert Ramey to Matias Capeletto

matias - could you take a look at this please?

Robert Ramey

by anonymous, 14 years ago

Possible fix as posted for Gentoo bug #215368

comment:3 by Matthias Troyer, 14 years ago

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