mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: natural::speed_of_light_in_vacuum
renamed to natural::speed_of_light
This commit is contained in:
@ -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);
|
||||
|
@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user