Fixes for gcc 13, clang 16 and C++20
- Fix implicit capture of
this(deprecated in C++20) - Fix (deprecated) implicit conversion from
enumto float - Avoid use of deprecated
is_pod - Replace unneeded
enumwithconstexpr unsigned int - Remove unused variables
- Fix implicit copy constructor/assignment deprecation warning
- Use && instead of & for booleans
- Hide null-pointer-subtraction warning
- Fix potential dereferencing of
nullptr - Hide warnings
'void operator delete(void*, std::size_t)' called on pointer '<unknown>' with nonzero offsetfromBernsteinPoly.cpp(probable false positive) - Fix warning about unused functions (only in standalone build of public headers)
-
Replacemoved to !4335 (merged)std::random_shufflewithstd::shuffle(random_shufflewas deprecated in C++14 and should have been removed in C++17)
Notes:
- when building
*-gcc13-dbgplatforms there are a number of spurious warnings in dictionaries, fixed by gaudi/Gaudi!1501 (merged) commit d8ad2fe3 (fromrandom_shuffletoshuffle) requires a change in the reference files in Boole and Rec
Edited by Marco Clemencic