summaryrefslogtreecommitdiff
path: root/src/utils/cpp/gsl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/cpp/gsl.hpp')
-rw-r--r--src/utils/cpp/gsl.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/cpp/gsl.hpp b/src/utils/cpp/gsl.hpp
index 97e0afe7..c691d3d5 100644
--- a/src/utils/cpp/gsl.hpp
+++ b/src/utils/cpp/gsl.hpp
@@ -15,8 +15,6 @@
#ifndef INCLUDED_SRC_UTILS_CPP_GSL_HPP
#define INCLUDED_SRC_UTILS_CPP_GSL_HPP
-#include "gsl/gsl"
-
// implement EnsuresAudit/ExpectsAudit (from gsl-lite) only run in debug mode
#ifdef NDEBUG
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
@@ -24,6 +22,7 @@
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define EnsuresAudit(x) (void)0
#else
+#include "gsl/gsl"
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ExpectsAudit(x) Expects(x)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)