Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
c56bd3ac
Commit
c56bd3ac
authored
Feb 23, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Renaming is_smart_holder_type_caster_base_tag -> smart_holder_type_caster_base_tag for simplicity.
parent
ce40fb6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/pybind11/cast.h
include/pybind11/cast.h
+1
-1
include/pybind11/detail/smart_holder_sfinae_hooks_only.h
include/pybind11/detail/smart_holder_sfinae_hooks_only.h
+1
-1
include/pybind11/detail/smart_holder_type_casters.h
include/pybind11/detail/smart_holder_type_casters.h
+1
-1
No files found.
include/pybind11/cast.h
View file @
c56bd3ac
...
...
@@ -68,7 +68,7 @@ using make_caster = type_caster<intrinsic_t<type>>;
template
<
typename
T
>
struct
type_uses_smart_holder_type_caster
{
static
constexpr
bool
value
=
std
::
is_base_of
<
is_
smart_holder_type_caster_base_tag
,
make_caster
<
T
>>::
value
;
=
std
::
is_base_of
<
smart_holder_type_caster_base_tag
,
make_caster
<
T
>>::
value
;
};
// clang-format off
...
...
include/pybind11/detail/smart_holder_sfinae_hooks_only.h
View file @
c56bd3ac
...
...
@@ -20,7 +20,7 @@ template <typename T>
struct
is_smart_holder_type
:
std
::
false_type
{};
// Tag to be used as base class, inspected by type_uses_smart_holder_type_caster<T> test.
struct
is_
smart_holder_type_caster_base_tag
{};
struct
smart_holder_type_caster_base_tag
{};
template
<
typename
T
>
struct
type_uses_smart_holder_type_caster
;
...
...
include/pybind11/detail/smart_holder_type_casters.h
View file @
c56bd3ac
...
...
@@ -239,7 +239,7 @@ public:
};
// clang-format on
struct
smart_holder_type_caster_class_hooks
:
is_
smart_holder_type_caster_base_tag
{
struct
smart_holder_type_caster_class_hooks
:
smart_holder_type_caster_base_tag
{
static
decltype
(
&
modified_type_caster_generic_load_impl
::
local_load
)
get_local_load_function_ptr
()
{
return
&
modified_type_caster_generic_load_impl
::
local_load
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment