Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.fusion 1.42 / Gcc 4.5: what is this error trying to tell me? (Works with Gcc 4.4)
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2011-03-06 04:05:20


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_impl<boost::fusion::non_fusion_tag>'
> /usr/include/boost/fusion/iterator/key_of.hpp:20:16: error: declaration of 'struct boost::fusion::extension::key_of_impl<boost::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.


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