mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
Renaming files in include directory, creating pybind11/smart_holder.h.
This commit is contained in:
parent
661eeb381c
commit
e96c06e61a
@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "detail/classh_type_casters.h"
|
||||
#include "smart_holder_poc.h"
|
||||
|
||||
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
|
||||
|
||||
using pybindit::memory::smart_holder;
|
||||
|
||||
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
|
@ -2,11 +2,11 @@
|
||||
|
||||
#include "../cast.h"
|
||||
#include "../pytypes.h"
|
||||
#include "../smart_holder_poc.h"
|
||||
#include "class.h"
|
||||
#include "common.h"
|
||||
#include "descr.h"
|
||||
#include "internals.h"
|
||||
#include "smart_holder_poc.h"
|
||||
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
@ -15,6 +15,9 @@
|
||||
#include <utility>
|
||||
|
||||
namespace pybind11 {
|
||||
|
||||
using pybindit::memory::smart_holder;
|
||||
|
||||
namespace detail {
|
||||
|
||||
inline std::pair<bool, handle> find_existing_python_instance(void *src_void_ptr,
|
3
include/pybind11/smart_holder.h
Normal file
3
include/pybind11/smart_holder.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#include "detail/smart_holder_type_casters.h"
|
@ -1,5 +1,5 @@
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Identical to classh_module_local_2.cpp, except 2 replaced with 1.
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Identical to classh_module_local_1.cpp, except 1 replaced with 2.
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "pybind11/smart_holder_poc.h"
|
||||
#include "pybind11/detail/smart_holder_poc.h"
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "pybind11_tests.h"
|
||||
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "pybind11_tests.h"
|
||||
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "pybind11_tests.h"
|
||||
|
||||
#include <pybind11/classh.h>
|
||||
#include <pybind11/smart_holder.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user