refactor: natural::speed_of_light_in_vacuum renamed to natural::speed_of_light

This commit is contained in:
Mateusz Pusz
2023-06-05 19:37:17 +02:00
parent 7a730fde58
commit 192bf39654
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -48,7 +48,7 @@ inline constexpr struct energy : system_reference<isq::mechanical_energy, gigael
// clang-format on
// constants
inline constexpr auto speed_of_light_in_vacuum = speed[one];
inline constexpr auto speed_of_light = speed[one];
namespace unit_symbols {