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

type_traits: Deprecation warnings with clang 15 #177

Open
cs96and opened this issue Dec 9, 2022 · 1 comment
Open

type_traits: Deprecation warnings with clang 15 #177

cs96and opened this issue Dec 9, 2022 · 1 comment

Comments

@cs96and
Copy link

cs96and commented Dec 9, 2022

I am getting a lot of deprecation warnings when using Boost with Clang 15. E.g.

boost/type_traits/has_nothrow_constructor.hpp:27:84: warning: builtin __has_nothrow_constructor is deprecated; use __is_nothrow_constructible instead [-Wdeprecated-builtins]

boost/type_traits/has_nothrow_assign.hpp:65:7: warning: builtin __has_nothrow_assign is deprecated; use __is_nothrow_assignable instead [-Wdeprecated-builtins]

boost/type_traits/has_nothrow_copy.hpp:36:89: warning: builtin __has_nothrow_copy is deprecated; use __is_nothrow_constructible instead [-Wdeprecated-builtins]

boost/type_traits/has_trivial_constructor.hpp:41:69: warning: builtin __has_trivial_constructor is deprecated; use __is_trivially_constructible instead [-Wdeprecated-builtins]

boost/type_traits/has_trivial_destructor.hpp:30:86: warning: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Wdeprecated-builtins]

boost/type_traits/has_trivial_assign.hpp:29:7: warning: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Wdeprecated-builtins]

boost/type_traits/has_trivial_copy.hpp:34:4: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]

The errors are all in boost/type_traits/intrinsics.hpp. This is with boost 1.72.0, however I took a look at the 1.80.0 source code and it doesn't look like it has been fixed.

See the Clang 15 documentation for more details...
https://releases.llvm.org/15.0.0/tools/clang/docs/LanguageExtensions.html#type-trait-primitives

@mclow mclow transferred this issue from boostorg/boost Dec 10, 2022
@glenfe
Copy link
Member

glenfe commented Dec 10, 2022

@cs96and It should be fixed in the upcoming 1.81 release via a1d0b20

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