|
Boost : |
Subject: Re: [boost] [mpl] [bimap] BOOST_MPL_LIMIT_METAFUNCTION_ARITY issue on g++ 4.6.3 and boost 1.50
From: Matias Capeletto (matias.capeletto_at_[hidden])
Date: 2012-12-05 06:09:12
Hi Adam,
If you check the include chain you will notice that Bimap is including
boost/mpl/lambda.hpp through the lib dependencies.
Your example can be reduced to this:
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
#define BOOST_MPL_LIMIT_METAFUNCTION_ARITY 9
#include <boost/mpl/lambda.hpp>
int main() {
return 0;
}
That fails for me with GCC 4.7.2 and Boost 1.52.
It seems that you are hitting the compiler limits. It works if you use
8 as the limit. You can open a ticket in Trac for MPL devs to look
into the issue.
Best regards
Matias
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk