Opened 12 years ago

Closed 12 years ago

#4665 closed Bugs (fixed)

compilation error in macro BOOST_CLASS_EXPORT_KEY2 and BOOST_CLASS_IS_WRAPPER

Reported by: Sergey Voropaev <serge-voropaev@…> Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

There is compilation error in next code (VC 7.1)

#include <boost/serialization/export.hpp>
#include <boost/serialization/wrapper.hpp>

struct b {};
template <typename T> struct a {};

BOOST_CLASS_EXPORT_KEY2(b, "b")             //OK
BOOST_CLASS_EXPORT_KEY2(a<int>, "a<int>")   //VC 7.1 error error C2947: expecting '>' to terminate template-argument-list, found '>>'

BOOST_CLASS_IS_WRAPPER(b)           //OK	
BOOST_CLASS_IS_WRAPPER(a<int>)      //VC 7.1 error error C2947: expecting '>' to terminate template-argument-list, found '>>'

The problem is in macro BOOST_CLASS_EXPORT_KEY2 and BOOST_CLASS_IS_WRAPPER. All sequence of character in text of macro "<T>" must be changed to "< T >"

Change History (1)

comment:1 by Robert Ramey, 12 years ago

Resolution: fixed
Status: newclosed

I've made this change in my code base for eventual migration to trunk and release. I'm closing this as fixed even though it won't show up in the test matrix for a little while.

Robert Ramey

Note: See TracTickets for help on using tickets.