store the value to be set inside wxON_BLOCK_EXIT_SET(), this allows to use temporarie...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Nov 2008 12:06:17 +0000 (12:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Nov 2008 12:06:17 +0000 (12:06 +0000)
commite196e5232a510ad2c78edd21bc9df762a144c38a
tree4ad50e3642fb614e0236a098b029aea2e0e370af
parenta779d8091cd8467691c3c7a41651ecb469541c85
store the value to be set inside wxON_BLOCK_EXIT_SET(), this allows to use temporaries with it and also fixes the test failure when built with icc and optimizations on (not sure if it is a compiler bug or not but in any case it seems better to fix it)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/scopeguard.h
interface/wx/scopeguard.h