Boost C++ Libraries: Ticket #8096: list_of.hpp got C6334 Code Analysis error https://svn.boost.org/trac10/ticket/8096 <p> Hi, </p> <p> I am developping a Windows 8 application with Visual Studio 2012. I currently got a "defectcode" error from Code Analysis(The code is not accepted by Microsoft until this error is fixed): </p> <hr /> <p> FILEPATH: c:\dev\tc2\trunk\libs\src\boost\assign\ </p> <p> FILENAME: <strong>list_of.hpp</strong> </p> <p> LINE: <strong>135</strong> </p> <p> DEFECTCODE: 6334 </p> <p> DESCRIPTION: sizeof operator applied to an expression with an operator might yield unexpected results. </p> <p> FUNCTION: <strong>boost::assign_detail::converter&lt;boost::assign_detail::generic_list&lt;std::pair&lt;char const *,bool&gt; &gt;,std::_Deque_iterator&lt;std::_Deque_val&lt;std::_Deque_simple_types&lt;std::pair&lt;char const *,bool&gt; &gt; &gt; &gt; &gt;::convert_to_container</strong> </p> <p> DECORATED: ??$convert_to_container@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@std@@@2@@std@@@?$converter@V?$generic_list@U?$pair@PBD_N@std@@@assign_detail@boost@@V?$_Deque_iterator@V?$_Deque_val@U?$_Deque_simple_types@U?$pair@PBD_N@std@@@std@@@std@@@std@@@assign_detail@boost@@QBE?AV?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@std@@@2@@std@@XZ </p> <p> FUNCLINE: 132 </p> <hr /> <p> Any fast fix to propose? </p> <p> Thank you for your time, </p> <p> Simon Durand </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8096 Trac 1.4.3 Steven Watanabe Tue, 19 Feb 2013 04:22:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8096#comment:1 https://svn.boost.org/trac10/ticket/8096#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> The code in question is correct. I really hope that the tool has a way to suppress false positives. </p> Ticket