From 64f906b93bdc2c8840c37c890d3f44b665557ef1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Sat, 31 Jul 2021 15:57:20 +0200
Subject: [PATCH] Make NaNHelper constructor explicit

---
 src/utils/NaNHelper.hpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/utils/NaNHelper.hpp b/src/utils/NaNHelper.hpp
index d77d1d9f1..c93ed333d 100644
--- a/src/utils/NaNHelper.hpp
+++ b/src/utils/NaNHelper.hpp
@@ -1,6 +1,8 @@
 #ifndef NAN_HELPER_HPP
 #define NAN_HELPER_HPP
 
+#include <utils/PugsMacros.hpp>
+
 #include <cmath>
 #include <iostream>
 #include <type_traits>
@@ -12,6 +14,7 @@ class NaNHelper
   const T& m_t;
 
  public:
+  PUGS_INLINE
   friend std::ostream&
   operator<<(std::ostream& os, const NaNHelper<T>& helper)
   {
@@ -26,7 +29,9 @@ class NaNHelper
     }
     return os;
   }
-  NaNHelper(const T& t) : m_t{t} {}
+
+  PUGS_INLINE
+  explicit NaNHelper(const T& t) : m_t{t} {}
 
   NaNHelper(NaNHelper&&)      = delete;
   NaNHelper(const NaNHelper&) = delete;
-- 
GitLab