diff --git a/include/pybind11/detail/exception_translation.h b/include/pybind11/detail/exception_translation.h index 87a1aaecb3..09b246199c 100644 --- a/include/pybind11/detail/exception_translation.h +++ b/include/pybind11/detail/exception_translation.h @@ -33,7 +33,6 @@ inline bool apply_exception_translators(std::forward_list & return false; } - inline void try_translate_exceptions() { /* When an exception is caught, give each registered exception translator a chance to translate it to a Python exception. First diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 1be865edaa..1806583e6b 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -9,9 +9,8 @@ */ #pragma once -#include "detail/exception_translation.h" - #include "detail/class.h" +#include "detail/exception_translation.h" #include "detail/init.h" #include "attr.h" #include "gil.h"