Subject: [Boost-bugs] [Boost C++ Libraries] #4665: compilation error in macro BOOST_CLASS_EXPORT_KEY2 and BOOST_CLASS_IS_WRAPPER
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-21 06:26:53
#4665: compilation error in macro BOOST_CLASS_EXPORT_KEY2 and
BOOST_CLASS_IS_WRAPPER
--------------------------------------------------------+-------------------
Reporter: Sergey Voropaev <serge-voropaev@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
--------------------------------------------------------+-------------------
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 >"
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4665> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC