Re: [Boost-bugs] [Boost C++ Libraries] #11640: scope_exit: -Wshadow warning issued

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11640: scope_exit: -Wshadow warning issued
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-06-19 11:38:58


#11640: scope_exit: -Wshadow warning issued
--------------------------------+------------------------------
  Reporter: lukasz.czajczyk@… | Owner: Lorenzo Caminiti
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: scope_exit
   Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+------------------------------

Comment (by anonymous):

 This is in the nature of the function if no closures are supported. The
 macro will re-declare the variables with the same name to bring them into
 the scope of the scoped function. This will lead in to a shadowing of the
 original variables.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/11640#comment:3>
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 : 2018-06-19 11:44:41 UTC