Skip to content

Commit d8664ad

Browse files
committed
Move forward-declaration of get_fully_qualified_tp_name to detail/common.h
1 parent 4ac0bd4 commit d8664ad

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

include/pybind11/cast.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
4040
PYBIND11_NAMESPACE_BEGIN(detail)
4141

42-
// Forward-declaration; see detail/class.h
43-
std::string get_fully_qualified_tp_name(PyTypeObject*);
44-
4542
/// A life support system for temporary objects created by `type_caster::load()`.
4643
/// Adding a patient will keep it alive up until the enclosing function returns.
4744
class loader_life_support {

include/pybind11/detail/common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,8 @@ class any_container {
853853
const std::vector<T> *operator->() const { return &v; }
854854
};
855855

856-
PYBIND11_NAMESPACE_END(detail)
857-
858-
856+
// Forward-declaration; see detail/class.h
857+
std::string get_fully_qualified_tp_name(PyTypeObject*);
859858

859+
PYBIND11_NAMESPACE_END(detail)
860860
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)

0 commit comments

Comments
 (0)