From 949b6a960911688f7519da4dd31ae7b0001a2073 Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Thu, 13 May 2021 11:45:46 -0400 Subject: [PATCH] Fixed the reference issue, maybe? --- include/teqp/constants.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/teqp/constants.hpp b/include/teqp/constants.hpp index 67c224b..9aae2b0 100644 --- a/include/teqp/constants.hpp +++ b/include/teqp/constants.hpp @@ -4,8 +4,8 @@ const double N_A = 6.02214076e23; ///< Avogadro's number ///< Gas constant, according to CODATA 2019, in the given number type template<typename NumType> -const NumType get_R_gas() { +const auto get_R_gas() { const double k_B = 1.380649e-23; ///< Boltzmann constant const double N_A = 6.02214076e23; ///< Avogadro's number - return N_A*k_B; + return forceeval(static_cast<NumType>(N_A*k_B)); }; \ No newline at end of file -- GitLab