From 40ef48c224b1e527eeb9094bdd7ce3aa69db1532 Mon Sep 17 00:00:00 2001 From: Surajjalpun2002 Date: Sun, 22 Oct 2023 19:17:20 +0530 Subject: [PATCH] changes regarding use of constexpr in case of constant variables Signed-off-by: Surajjalpun2002 --- avogadro/io/cmlformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro/io/cmlformat.cpp b/avogadro/io/cmlformat.cpp index 20da702607..a46b335c99 100644 --- a/avogadro/io/cmlformat.cpp +++ b/avogadro/io/cmlformat.cpp @@ -27,7 +27,7 @@ #include #ifndef M_PI -#define M_PI 3.14159265358979323846 +constexpr double M_PI = 3.14159265358979323846; #endif namespace Avogadro::Io {