From e611823e4c0f999a1cb0260d74c37eae10dec416 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 5 May 2016 21:54:24 +0200 Subject: [PATCH] quench warning on osx --- include/pybind11/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/common.h b/include/pybind11/common.h index 1ca0d1db..19f1f309 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -227,7 +227,7 @@ private: NAMESPACE_BEGIN(detail) -static constexpr int log2(size_t n, int k = 0) { return (n <= 1) ? k : log2(n >> 1, k + 1); } +inline static constexpr int log2(size_t n, int k = 0) { return (n <= 1) ? k : log2(n >> 1, k + 1); } inline std::string error_string();