From 192bf39654b9ac75f814b00276a47de83bcc2000 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 5 Jun 2023 19:37:17 +0200 Subject: [PATCH] refactor: `natural::speed_of_light_in_vacuum` renamed to `natural::speed_of_light` --- example/total_energy.cpp | 2 +- src/systems/natural/include/mp-units/systems/natural/natural.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/total_energy.cpp b/example/total_energy.cpp index 3c349fc9..321b487f 100644 --- a/example/total_energy.cpp +++ b/example/total_energy.cpp @@ -88,7 +88,7 @@ void natural_example() using namespace mp_units::natural; using namespace mp_units::natural::unit_symbols; - constexpr auto c = 1. * speed_of_light_in_vacuum; + constexpr auto c = 1. * speed_of_light; const auto p = 4. * momentum[GeV]; const auto m = 3. * mass[GeV]; const auto E = total_energy(p, m, c); diff --git a/src/systems/natural/include/mp-units/systems/natural/natural.h b/src/systems/natural/include/mp-units/systems/natural/natural.h index 99095912..3d614336 100644 --- a/src/systems/natural/include/mp-units/systems/natural/natural.h +++ b/src/systems/natural/include/mp-units/systems/natural/natural.h @@ -48,7 +48,7 @@ inline constexpr struct energy : system_reference