Skip to content
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

Clang warning in unique_resource #2

Closed
Pesa opened this issue Aug 12, 2020 · 2 comments
Closed

Clang warning in unique_resource #2

Pesa opened this issue Aug 12, 2020 · 2 comments

Comments

@Pesa
Copy link

Pesa commented Aug 12, 2020

This is reproducible with various versions of clang.

.../nonstd/scope-lite.hpp:909:33: warning: cannot refer to a non-static member from the handler of a constructor function try block [-Wexceptions]
            other.get_deleter()(get());
                                ^
1 warning generated.
@martinmoene
Copy link
Owner

Thanks Davide, will be a few weeks until I'm able to work on this & other issue(s) as I'm currently on holidays.

@Pesa
Copy link
Author

Pesa commented Aug 24, 2020

I tested as of commit 203cce7 and the warning is gone. Thanks!

@Pesa Pesa closed this as completed Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants