Hi there, I'm experiencing problems when setting FUSION_MAX_MAP_SIZE
to 20. I'm getting a lot of compiler errors:
#define FUSION_MAX_MAP_SIZE 20
#include <string>
#include
#include
using namespace std;
using namespace boost;
// Address contact
namespace address_fields
{
struct _address_1_;
struct _address_2_;
struct _city_;
struct _state_;
struct _zip_;
struct _country_;
struct _phone_1_;
struct _phone_2_;
struct _email_1_;
struct _email_2_;
struct _fax_;
struct _other_;
}
typedef fusion::map< fusion::pair< address_fields::_address_1_, string >
, fusion::pair< address_fields::_address_2_, string >
, fusion::pair< address_fields::_city_ , string >
, fusion::pair< address_fields::_state_ , string >
, fusion::pair< address_fields::_zip_ , string >
, fusion::pair< address_fields::_country_ , string >
, fusion::pair< address_fields::_phone_1_ , string >
, fusion::pair< address_fields::_phone_2_ , string >
, fusion::pair< address_fields::_email_1_ , string >
, fusion::pair< address_fields::_email_2_ , string >
, fusion::pair< address_fields::_fax_ , string >
, fusion::pair< address_fields::_other_ , string >
> address_type;
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
c:\boost\boost\fusion\sequence\container\map\map.hpp(41) : error
C2977: 'boost::fusion::vector' : too many template arguments
c:\boost\boost\fusion\sequence\container\vector\vector.hpp(126)
: see declaration of 'boost::fusion::vector'
c:\boost\boost\fusion\sequence\container\map\map.hpp(70) : see
reference to class template instantiation
'boost::fusion::map'
being compiled
c:\boost\boost\fusion\sequence\container\map\detail\map_lookup.hpp(31)
: error C3203: 'vector' : class template invalid as template argument
for template parameter 'Vector', expected a real type
c:\boost\boost\fusion\sequence\container\map\detail\map_lookup.hpp(32)
: see reference to class template instantiation
'boost::fusion::map::meta_find_impl'
being compiled
c:\boost\boost\fusion\sequence\container\map\detail\map_lookup.hpp(37)
: error C3203: 'vector' : class template invalid as template argument
for template parameter 'Vector', expected a real type
[snip]
Any ideas,
Christian