
On 06/03/11 10:01, Joost Kraaijeveld wrote:
Hi,
I have code that compiles OK with Gcc 4.4 but fails with 4.5 and I cannot understand what the error I get from the compiler means. Maybe someone here can give me a suggestion?
The error: ../../../library/DanuModelObjectsFactory/UserCreatorFunction.cpp:40:83: instantiated from here /usr/include/boost/fusion/iterator/key_of.hpp:38:9: error: invalid use of incomplete type 'struct boost::fusion::extension::key_of_implboost::fusion::non_fusion_tag' /usr/include/boost/fusion/iterator/key_of.hpp:20:16: error: declaration of 'struct boost::fusion::extension::key_of_implboost::fusion::non_fusion_tag'
The non_fusion_tag error here says you pass a type which is not a fusion sequence to key_of at line 40 of your code.
ObjectId& objectId = boost::fusion::at_key< UserCreator::objectId>(*arguments);<--!!!!!!!!
So here check if *arguments is really a fusion sequence.