Re: [Boost-bugs] [Boost C++ Libraries] #4946: Uninitialized variable warning in lexical_cast.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4946: Uninitialized variable warning in lexical_cast.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-13 18:00:47


#4946: Uninitialized variable warning in lexical_cast.hpp
---------------------------------------------+--------------------------
  Reporter: Rich McKeever <richmckeever@…> | Owner: apolukhin
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+--------------------------

Comment (by Martin):

 Is there a reason not to explicitly default-initialize 'result'? One of
 the earlier patches was to do just that. Basically, the safe equivalent of

 {{{
 Target result = Target();
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4946#comment:12>
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:20 UTC