|
Boost Users : |
From: Santosh Joseph (santoshjoseph73_at_[hidden])
Date: 2007-03-16 12:23:42
My code compiles on visual studio 8, but on g++ 3.3.2
(linux) and with g++ 3.4.4 (cygwin) it chokes with
the following error:
In function
`void convertToScctsOpt()':
optionmanager.cpp:119: error: expected init-declarator
before "ScctsType"
optionmanager.cpp:119: error: expected `, ' or `;'
before "ScctsType"
optionmanager.cpp:120: error: `ScctsType' undeclared
(first use this function)
Is some special command line argument needed?
thanks for any help.
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
#define BOOST_MPL_LIMIT_MAP_SIZE 50
#include <boost/mpl/map.hpp>
#include <boost/mpl/at.hpp>
#include <boost/mpl/pair.hpp>
namespace bm = boost::mpl;
typedef bm::map<
bm::pair<Type1, MappedType1>,
.
.
.
bm::pair<Type41, MappedType41>
> TypeToTypeMap;
template<typename SoapType>
inline void convertToScctsOpt()
{
typedef bm::at<TypeToTypeMap,SoapType>::type
ScctsType;
}
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net