Skip to content

Commit

Permalink
Work around noexcept-in-type-system VS2017 bug (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhor authored Apr 6, 2023
1 parent 56e3e5a commit 70155eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/wil/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,7 @@ namespace wil
}

template <ULONG flags = 0>
using unique_private_namespace = unique_any_handle_null_only<decltype(details::ClosePrivateNamespaceHelper<flags>), &details::ClosePrivateNamespaceHelper<flags>>;
using unique_private_namespace = unique_any_handle_null_only<void(__stdcall*)(HANDLE) WI_PFN_NOEXCEPT, &details::ClosePrivateNamespaceHelper<flags>>;

using unique_private_namespace_close = unique_private_namespace<>;
using unique_private_namespace_destroy = unique_private_namespace<PRIVATE_NAMESPACE_FLAG_DESTROY>;
Expand Down

0 comments on commit 70155eb

Please sign in to comment.