Re: [Boost-bugs] [Boost C++ Libraries] #11169: boost::optional triggers -Wmaybe-uninitialized errors in g++

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11169: boost::optional triggers -Wmaybe-uninitialized errors in g++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-19 07:38:03


#11169: boost::optional triggers -Wmaybe-uninitialized errors in g++
----------------------------------------------+-----------------------
  Reporter: Mathias Stearn <redbeard0531@…> | Owner: fcacciola
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: optional
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------

Comment (by anonymous):

 Note that this GCC bug is fixed in GCC 5.1. Also as per th StackOverflow
 response, use a workaround by initializing an optional with a 'fabricated'
 empty value:

 {{{
 boost::optional<int> b = boost::make_opitonal(false, int());
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11169#comment:2>
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