diff --git a/src/utils/NaNHelper.hpp b/src/utils/NaNHelper.hpp index d77d1d9f177b2d4aa9f3ecc0a93b457e367f66e4..c93ed333dc5faf8940ab2b5ccfcac88e6720d6b8 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;