fix: some fixes revealed during clang compilation

This commit is contained in:
Mateusz Pusz committed 2023-08-24 19:14:23 +02:00
1 parent 3cc653fae1
commit 624b7c7404
10 files changed
+16 -13

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ void si_example()
using namespace mp_units::si::unit_symbols;
constexpr auto GeV = si::giga<si::electronvolt>;
constexpr QuantityOf<isq::speed> auto c = 1. * si::si2019::speed_of_light_in_vacuum;
constexpr auto c2 = pow<2>(c);
auto c2 = pow<2>(c);
const auto p1 = isq::momentum(4. * GeV / c);
const QuantityOf<isq::mass> auto m1 = 3. * GeV / c2;