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
TypeToTypeMap;
template<typename SoapType>
inline void convertToScctsOpt()
{
typedef bm::at
--- Santosh Joseph wrote:
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?
No.
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS #define BOOST_MPL_LIMIT_MAP_SIZE 50 #include
#include #include namespace bm = boost::mpl; typedef bm::map< bm::pair
, . . . bm::pair TypeToTypeMap;
template<typename SoapType> inline void convertToScctsOpt() { typedef bm::at
::type ScctsType; }
This last function needs to be:
template<typename SoapType>
inline void convertToScctsOpt()
{
typedef typename
bm::at
participants (2)
-
Cromwell Enage
-
Santosh Joseph