Opened 15 years ago
Closed 14 years ago
#1822 closed Bugs (fixed)
header dependency in boost/serialization/map.hpp
Reported by: | 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)
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Owner: | changed from | to
---|
matias - could you take a look at this please?
Robert Ramey
by , 14 years ago
Attachment: | 06_all_1.35.0-0002-serialisation-utility-include.patch added |
---|
Possible fix as posted for Gentoo bug #215368
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.