You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I get the following warnings when I compile a plain project using centurion:
In file included from /.../build/_deps/centurion-src/src/centurion/common.hpp:28, from /.../build/_deps/centurion-src/src/centurion.hpp:33, from /.../source/main.cpp:1:/.../build/_deps/centurion-src/src/centurion/common/math.hpp:66:35: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 66 | [[nodiscard]] explicit operator basic_vector3<U>() const noexcept | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp: In member function ‘cen::basic_vector3<T>::operator cen::basic_vector3<U>() const’:/.../build/_deps/centurion-src/src/centurion/common/math.hpp:68:40: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 68 | using target_value_type = typename basic_vector3<U>::value_type; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:69:12: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 69 | return basic_vector3<U> {static_cast<target_value_type>(x), | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp: At global scope:/.../build/_deps/centurion-src/src/centurion/common/math.hpp:76:49: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 76 | [[deprecated]] void serialize(Archive& archive, basic_vector3<T>& vector) | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:82:59: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 82 | [[nodiscard, deprecated]] constexpr auto operator==(const basic_vector3<T>& a, | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:83:59: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 83 | const basic_vector3<T>& b) noexcept -> bool | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:89:59: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 89 | [[nodiscard, deprecated]] constexpr auto operator!=(const basic_vector3<T>& a, | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:90:59: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 90 | const basic_vector3<T>& b) noexcept -> bool | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:96:48: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 96 | [[nodiscard, deprecated]] auto to_string(const basic_vector3<T>& vector) -> std::string | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:107:60: warning: ‘template<class T> struct cen::basic_vector3’ is deprecated [-Wdeprecated-declarations] 107 | [[deprecated]] auto operator<<(std::ostream& stream, const basic_vector3<T>& vector) | ^~~~~~~~~~~~~/.../build/_deps/centurion-src/src/centurion/common/math.hpp:50:8: note: declared here 50 | struct basic_vector3; | ^~~~~~~~~~~~~
Compiler info:
$ /usr/bin/c++ --versionc++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0Copyright (C) 2021 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
around the uses of basic_vector3 in math.hpp? I tested placing it between lines 64 and 112 and as long as the ivec3 / fvec3 / basic_vector3 definitions are outside the #pragma, the deprecation warning still occurs when the struct is referenced, but it suppresses the deprecation that occurs on import.
Hello! I get the following warnings when I compile a plain project using centurion:
Compiler info:
Compilation command (from CMake):
CMakeLists.txt
:The text was updated successfully, but these errors were encountered: