2012-11-14 2 views
0

나는 boost :: bimap을 사용하는 flinting code snippet에 문제가 있습니다. I는 다음과 같습니다 간단한 bimap.cpp이 : 아니 완벽한 하나FlexeLint 및 boost :: bimap

#include <boost/bimap.hpp> 

typedef boost::bimap<int, double> TestBimap; 

int main() 
{ 
    TestBimap flintTest; 
    return 0; 
} 

을, 나도 알아,하지만 그냥 예. 나는 그것에 부싯돌을 달린다 :

flint --i../flexelint_cfg/ --i/home/rat/boost/1.45.0/include ../flexelint_cfg//co-gcc.lnt bimap.cpp 

그리고 flint는 엄청난 수의 오류를 반환한다. 꼭대기에서 몇은 다음과 같습니다

--- Module: bimap.cpp (C++)$ 
    $ 
     While instantiating boost::bimaps::bimap<int,double> at File bimap.cpp line 7$ 
     While instantiating boost::bimaps::detail::bimap_core<int,double,mpl_::na,mpl_::na,mpl_::na>$ 
     at File /boost/1.45.0/include/boost/bimap/bimap.hpp$ 
     line 137$ 
     While instantiating struct boost::bimaps::detail::manage_bimap_key<int> at$ 
     File /boost/1.45.0/include/boost/bimap/detail/bimap_core.hpp$ 
     line 90$ 
     While instantiating struct boost::bimaps::set_of<int> at File$ 
     /boost/1.45.0/include/boost/bimap/detail/manage_bimap_key.hpp$ 
     line 69$ 
     While instantiating struct boost::concepts::requirement_<void$ 
     (*)(boost::AssignableConcept<int>)> at File /boost/1.45.0/include/boost/bimap/set_of.hpp$ 
     line 130$ 
     While instantiating struct boost::AssignableConcept<int> at File$ 
     /boost/1.45.0/include/boost/concept/detail/general.hpp$ 
     line 54$ 
     While instantiating struct boost::Assignable<int> at File$ 
     /boost/1.45.0/include/boost/concept_check.hpp$ 
     line 137$ 
     While instantiating struct boost::concepts::requirement_<void$ 
     (*)(boost::concepts::usage_requirements<boost::Assignable<int>>)> at File$ 
     /boost/1.45.0/include/boost/concept_check.hpp$ 
     line 139$ 
     While instantiating struct boost::mpl::if_<boost::concepts::not_satisfied<boost::concepts::usage_requirements<boost::Assignable<int>$ 
    >>,boost::concepts::constraint<boost::concepts::usage_requirements<boost::Assignable<int>>>,boost::concepts::requirement<boost::concepts::f$ 
    ailed ************usage_requirements::************>> at File$ 
     /boost/1.45.0/include/boost/concept/detail/general.hpp$ 
     line 56$ 
     While instantiating struct boost::concepts::not_satisfied<boost::concepts::usage_requirements<boost::Assignable<int>$ 
    >> at File /boost/1.45.0/include/boost/mpl/if.hpp$ 
     line 63$ 
          _$ 
     TestBimap flintTest;$ 
    /boost/1.45.0/include/boost/concept/detail/has_constraints.hpp $ 
     44 Error 1015: Symbol 'constraints' not found in class$ 
    bimap.cpp 7 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/bimap/bimap.hpp $ 
     137 Info 831: Reference cited in prior message$ 
    /64bit/boost/1.45.0/include/boost/mpl/if.hpp $ 
     63 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/bimap/detail/bimap_core.hpp $ 
     90 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/concept_check.hpp $ 
     137 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/concept_check.hpp $ 
     139 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/concept/detail/general.hpp $ 
     54 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/concept/detail/general.hpp $ 
     56 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/bimap/detail/manage_bimap_key.hpp $ 
     69 Info 831: Reference cited in prior message$ 
    /boost/1.45.0/include/boost/bimap/set_of.hpp $ 
     130 Info 831: Reference cited in prior message$ 

내 FlexeLint 버전은 다음과 같습니다

FlexeLint for C/C++ (Unix) Vers. 9.00i, Copyright Gimpel Software 1985-2012 

내가이 일을 만들려고 노력하는 시간을 보냈다, 그러나 운이없이. 누구나 똑같은 문제를 안고 해결책을 찾았습니까? 이 구성 오류입니까? 필요한 경우 내 구성을 게시 할 수 있습니다.

매우 도움이 될 것입니다.

감사합니다.

PS : flexelint tag please;>?

답변

0

나 같은 문제를 겪은 당신들에게. 나는이 질문을 Gimepl 지지자에게 직접 물어 보았다. 그리고 그들은 이것이 FlexeLint가 C++ 11 가변성 템플릿을 다루지 않는 문제라고 대답했다. 그러므로 지금은 -elib 및 -e 옵션을 사용하여 이러한 경고를 보류하는 것이 유일한 해결책입니다.