X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f48d306f461e396068fd3fbe8c30ed64e33f47a..9968f7b4cd6752ead5744d4895ed392458d83abd:/interface/wx/scopeguard.h?ds=sidebyside diff --git a/interface/wx/scopeguard.h b/interface/wx/scopeguard.h index 55ea677e22..01887eb603 100644 --- a/interface/wx/scopeguard.h +++ b/interface/wx/scopeguard.h @@ -131,6 +131,9 @@ wxScopeGuard wxMakeGuard(F func, P1 p1, ..., PN pN); } @endcode + Notice that @a value is copied, i.e. stored by value, so it can be a + temporary object returned by a function call, for example. + @see wxON_BLOCK_EXIT_OBJ0(), wxON_BLOCK_EXIT_NULL() @header{wx/scopeguard.h}