https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127325
Bug ID: 127325
Summary: using std::inplace_vector emits deprecation warning
Product: gcc
Version: 16.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: avi at scylladb dot com
Target Milestone: ---
If you look at std::inplace_vector in a funny way, is says
/usr/lib/gcc/x86_64-redhat-linux/16/../../../../include/c++/16/inplace_vector:853:20:
warning: 'is_trivial_v<unsigned int>' is deprecated: use
'is_trivially_default_constructible_v && is_trivially_copyable_v' instead
[-Wdeprecated-declarations]
853 | if constexpr (is_trivial_v<_Tp>)
| ^
/usr/lib/gcc/x86_64-redhat-linux/16/../../../../include/c++/16/inplace_vector:128:2:
note: in instantiation of member function 'std::inplace_vector<unsigned int,
2>::_M_init' requested here
128 | _M_init();
| ^
./locator/abstract_replication_strategy.hh:355:16: note: in instantiation of
member function 'std::inplace_vector<unsigned int, 2>::inplace_vector'
requested here
355 | return {shard_for_reads(s, token)};
| ^
/usr/lib/gcc/x86_64-redhat-linux/16/../../../../include/c++/16/type_traits:3660:3:
note: 'is_trivial_v<unsigned int>' has been explicitly marked deprecated here
3660 | _GLIBCXX26_DEPRECATED_SUGGEST("is_trivially_default_constructible_v
&& is_trivially_copyable_v")
| ^
/usr/lib/gcc/x86_64-redhat-linux/16/../../../../include/c++/16/x86_64-redhat-linux/bits/c++config.h:2104:45:
note: expanded from macro '_GLIBCXX26_DEPRECATED_SUGGEST'
2104 | # define _GLIBCXX26_DEPRECATED_SUGGEST(ALT)
_GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/lib/gcc/x86_64-redhat-linux/16/../../../../include/c++/16/x86_64-redhat-linux/bits/c++config.h:2056:19:
note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
2056 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
1 warning generated.