mirror of
https://github.com/mpusz/mp-units.git
synced 2026-07-07 17:10:53 +02:00
refactor(utility): deprecate the mp_units:: rep shims and migrate consumers
The cartesian_vector and random distribution types now live in mp_units::utility. Turn the transitional mp_units:: shims into proper [[deprecated]] aliases (gcc-12 keeps a plain using-declaration because CTAD through a deprecated alias template is broken there), and migrate all in-tree consumers to mp_units::utility:: so the deprecations don't trip -Werror. cartesian_tensor keeps no shim: it is unreleased (added in 2.6.0, never shipped), so it lives only at mp_units::utility. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@ inline constexpr const char* backend_name = "Blaze";
|
||||
using vec3 = blaze::StaticVector<double, 3>;
|
||||
#elif defined(MP_UNITS_LA_CARTESIAN)
|
||||
inline constexpr const char* backend_name = "cartesian_vector (built-in)";
|
||||
using vec3 = cartesian_vector<double>;
|
||||
using vec3 = utility::cartesian_vector<double>;
|
||||
#endif
|
||||
|
||||
[[nodiscard]] vec3 make_vec3(double x, double y, double z) { return {x, y, z}; }
|
||||
|
||||
Reference in New Issue
Block a user