From b9e7ffc90cc12b184e9cf1c61fe79b69e633af60 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 24 Feb 2020 14:12:38 +0100 Subject: [PATCH] total_energy fixed for gcc-9 --- example/total_energy.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example/total_energy.cpp b/example/total_energy.cpp index 79fab5cd..c816270a 100644 --- a/example/total_energy.cpp +++ b/example/total_energy.cpp @@ -31,7 +31,7 @@ namespace { using namespace units; -Energy auto total_energy(Momentum auto p, Mass auto m, Velocity auto c) +Energy AUTO total_energy(Momentum AUTO p, Mass AUTO m, Velocity AUTO c) { return sqrt(pow<2>(p * c) + pow<2>(m * pow<2>(c))); } @@ -40,12 +40,12 @@ void example() { using namespace si; - const Momentum auto p = 4.q_GeV / speed_of_light; + const Momentum AUTO p = 4.q_GeV / speed_of_light; const momentum p_si = p; - const Mass auto m = 3.q_GeV / pow<2>(speed_of_light); + const Mass AUTO m = 3.q_GeV / pow<2>(speed_of_light); const mass m_si = m; - const Velocity auto c = speed_of_light; - const Energy auto E = total_energy(p, m, c); + const Velocity AUTO c = speed_of_light; + const Energy AUTO E = total_energy(p, m, c); const energy E_si = total_energy(p_si, m_si, c); std::cout << "p = " << p << "\n"