}
scope_exit(scope_exit&& other)
- : func_(std::move(other.v))
+ : func_(std::move(other.func_))
, valid_(std::move(other.valid_))
{
other.valid_ = false;
catch(...)
{
if(!std::uncaught_exception())
+#pragma warning(push)
+#pragma warning(disable: 4297)
throw;
+#pragma warning(pop)
else
CASPAR_LOG_CURRENT_EXCEPTION();
}