Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
c56bd3ac
Commit
c56bd3ac
authored
Feb 23, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming is_smart_holder_type_caster_base_tag -> smart_holder_type_caster_base_tag for simplicity.
parent
ce40fb6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/pybind11/cast.h
+1
-1
include/pybind11/detail/smart_holder_sfinae_hooks_only.h
+1
-1
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