[Boost-bugs] [Boost C++ Libraries] #8096: list_of.hpp got C6334 Code Analysis error

Subject: [Boost-bugs] [Boost C++ Libraries] #8096: list_of.hpp got C6334 Code Analysis error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-18 18:44:23


#8096: list_of.hpp got C6334 Code Analysis error
------------------------------------------+---------------------------------
 Reporter: simon.durand@… | Owner: nesotto
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: assign
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 Hi,

 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):

 ----
 FILEPATH: c:\dev\tc2\trunk\libs\src\boost\assign\

 FILENAME: '''list_of.hpp'''

 LINE: '''135'''

 DEFECTCODE: 6334

 DESCRIPTION: sizeof operator applied to an expression with an operator
 might yield unexpected results.

 FUNCTION:
 '''boost::assign_detail::converter<boost::assign_detail::generic_list<std::pair<char
 const *,bool>
>,std::_Deque_iterator<std::_Deque_val<std::_Deque_simple_types<std::pair<char
 const *,bool> > > > >::convert_to_container'''

 DECORATED:
 ??$convert_to_container_at_V?$map_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@_NU?$less_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@2_at_V?$allocator_at_U?$pair@$$CBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@_N_at_std@@@2@@std@@@?$converter_at_V?$generic_list_at_U?$pair_at_PBD_N_at_std@@@assign_detail_at_boost@@V?$_Deque_iterator_at_V?$_Deque_val_at_U?$_Deque_simple_types_at_U?$pair_at_PBD_N_at_std@@@std@@@std@@@std@@@assign_detail_at_boost@@QBE?AV?$map_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@_NU?$less_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@2_at_V?$allocator_at_U?$pair@$$CBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@_N_at_std@@@2@@std@@XZ

 FUNCLINE: 132
 ----

 Any fast fix to propose?

 Thank you for your time,


 Simon Durand

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8096>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC