-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2017 noexcept-in-typesystem bug is hitting with the definition of 'unique_private_namespace' #302
Comments
What does your code look like that causes this error? |
Also, since this appears to maybe be related to |
Same error here. |
If memory serves me correctly, VS2017 has a behavior where it'll ignore |
If that is the issue, then we could go about it by explicitly writing the type instead of using template <ULONG flags = 0>
using unique_private_namespace = unique_any_handle_null_only<void(__stdcall*)(HANDLE) WI_PFN_NOEXCEPT, &details::ClosePrivateNamespaceHelper<flags>>; |
In my case, compiling with Windows SDK Version: 10.0.14393.0 Microsoft.Windows.ImplementationLibrary 1.0.230202.1
|
Sounds like from my comment in #25, it was VS 2019 that had the |
Yes, replacing
with
allows the code to compile. As another work-around, downgrade the NuGet package Microsoft.Windows.ImplementationLibrary to 1.0.210803.1. Thank you. |
1>wb2.cpp
1>e:\code\mytest\wb2\packages\microsoft.windows.implementationlibrary.1.0.230202.1\include\wil\resource.h(2550): error C2440: “specialization”: 无法从“void (__stdcall *)(HANDLE) noexcept”转换为“unknown-type”
1>e:\code\mytest\wb2\packages\microsoft.windows.implementationlibrary.1.0.230202.1\include\wil\resource.h(2550): note: 上下文不允许消除重载函数的歧义
The text was updated successfully, but these errors were encountered: