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:
Mateusz Pusz
2026-06-27 18:55:19 +02:00
parent 3ebb6076b6
commit ce833d344d
13 changed files with 432 additions and 409 deletions
+1 -1
View File
@@ -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}; }