Opened 6 years ago

#12704 new Bugs

scope_exit: MSVC 14.0 Update 3 warning issued

Reported by: thomas.forell@… Owned by: Lorenzo Caminiti
Milestone: To Be Determined Component: scope_exit
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Hi,

BOOST_SCOPE_EXIT emits
warning C4459: declaration of 'boost_scope_exit_aux_args' hides global declaration
using compiler setting /W4 for Visual Studio 2015 Update 3 (VC 14)

Example code:

#include <boost/scope_exit.hpp>
int main()
{
    int test = 0;
    BOOST_SCOPE_EXIT(&test) { test = 5;  } BOOST_SCOPE_EXIT_END;
    return 0;
}

Change History (0)

Note: See TracTickets for help on using tickets.