Note that there are some explanatory texts on larger screens.

plurals
  1. POFlexeLint and boost::bimap
    primarykey
    data
    text
    <p>I have a problem with flinting code snippet that use boost::bimap. I have a simple bimap.cpp that looks like this:</p> <pre><code>#include &lt;boost/bimap.hpp&gt; typedef boost::bimap&lt;int, double&gt; TestBimap; int main() { TestBimap flintTest; return 0; } </code></pre> <p>Not the perfect one, I know, but it just an example. I run flint on it:</p> <pre><code>flint --i../flexelint_cfg/ --i/home/rat/boost/1.45.0/include ../flexelint_cfg//co-gcc.lnt bimap.cpp </code></pre> <p>and flint return a enormous number of errors. The few from the top are:</p> <pre><code> --- Module: bimap.cpp (C++)$ $ While instantiating boost::bimaps::bimap&lt;int,double&gt; at File bimap.cpp line 7$ While instantiating boost::bimaps::detail::bimap_core&lt;int,double,mpl_::na,mpl_::na,mpl_::na&gt;$ at File /boost/1.45.0/include/boost/bimap/bimap.hpp$ line 137$ While instantiating struct boost::bimaps::detail::manage_bimap_key&lt;int&gt; at$ File /boost/1.45.0/include/boost/bimap/detail/bimap_core.hpp$ line 90$ While instantiating struct boost::bimaps::set_of&lt;int&gt; at File$ /boost/1.45.0/include/boost/bimap/detail/manage_bimap_key.hpp$ line 69$ While instantiating struct boost::concepts::requirement_&lt;void$ (*)(boost::AssignableConcept&lt;int&gt;)&gt; at File /boost/1.45.0/include/boost/bimap/set_of.hpp$ line 130$ While instantiating struct boost::AssignableConcept&lt;int&gt; at File$ /boost/1.45.0/include/boost/concept/detail/general.hpp$ line 54$ While instantiating struct boost::Assignable&lt;int&gt; at File$ /boost/1.45.0/include/boost/concept_check.hpp$ line 137$ While instantiating struct boost::concepts::requirement_&lt;void$ (*)(boost::concepts::usage_requirements&lt;boost::Assignable&lt;int&gt;&gt;)&gt; at File$ /boost/1.45.0/include/boost/concept_check.hpp$ line 139$ While instantiating struct boost::mpl::if_&lt;boost::concepts::not_satisfied&lt;boost::concepts::usage_requirements&lt;boost::Assignable&lt;int&gt;$ &gt;&gt;,boost::concepts::constraint&lt;boost::concepts::usage_requirements&lt;boost::Assignable&lt;int&gt;&gt;&gt;,boost::concepts::requirement&lt;boost::concepts::f$ ailed ************usage_requirements::************&gt;&gt; at File$ /boost/1.45.0/include/boost/concept/detail/general.hpp$ line 56$ While instantiating struct boost::concepts::not_satisfied&lt;boost::concepts::usage_requirements&lt;boost::Assignable&lt;int&gt;$ &gt;&gt; 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$ </code></pre> <p>My FlexeLint version is:</p> <pre><code>FlexeLint for C/C++ (Unix) Vers. 9.00i, Copyright Gimpel Software 1985-2012 </code></pre> <p>I spent hours trying to make it work, but without luck. Anyone hitted the same problem and have a solution? Is this misconfiguration - I can post my config if this is required.</p> <p>I will be very thankfull for help</p> <p>Best regards!</p> <p>PS: flexelint tag please;>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload