Add missing includes for better Bazel compatibility (#1255)

Bazel has a "strict" build model that requires all C++ header files be compilable on their own, and thus must explicitly #include all headers they require (even if de facto header inclusion order means they'd get them "for free"). This adds a couple of headers that are needed (but missing) by this model.
This commit is contained in:
Steven Johnson 2019-06-10 12:54:56 -07:00 committed by Wenzel Jakob
parent 979d75de23
commit 4ddf7c402d
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#pragma once
#include "../attr.h"
#include "../options.h"
NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
NAMESPACE_BEGIN(detail)

View File

@ -16,6 +16,8 @@
#include <cxxabi.h>
#endif
#include "common.h"
NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
NAMESPACE_BEGIN(detail)
/// Erase all occurrences of a substring