Opened 10 years ago
Closed 10 years ago
#8096 closed Bugs (wontfix)
list_of.hpp got C6334 Code Analysis error
Reported by: | Owned by: | Thorsten Ottosen | |
---|---|---|---|
Milestone: | To Be Determined | Component: | assign |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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@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
FUNCLINE: 132
Any fast fix to propose?
Thank you for your time,
Simon Durand
The code in question is correct. I really hope that the tool has a way to suppress false positives.