Skip to content

Commit

Permalink
Move forward-declaration of get_fully_qualified_tp_name to detail/com…
Browse files Browse the repository at this point in the history
…mon.h
  • Loading branch information
YannickJadoul committed Oct 4, 2020
1 parent 4ac0bd4 commit d8664ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
PYBIND11_NAMESPACE_BEGIN(detail)

// Forward-declaration; see detail/class.h
std::string get_fully_qualified_tp_name(PyTypeObject*);

/// A life support system for temporary objects created by `type_caster::load()`.
/// Adding a patient will keep it alive up until the enclosing function returns.
class loader_life_support {
Expand Down
6 changes: 3 additions & 3 deletions include/pybind11/detail/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,8 @@ class any_container {
const std::vector<T> *operator->() const { return &v; }
};

PYBIND11_NAMESPACE_END(detail)


// Forward-declaration; see detail/class.h
std::string get_fully_qualified_tp_name(PyTypeObject*);

PYBIND11_NAMESPACE_END(detail)
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)

0 comments on commit d8664ad

Please sign in to comment.