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
593587b2
Commit
593587b2
authored
Feb 13, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copying MSVC 2015 compatibility change from branch pr2672_use_smart_holder_as_default.
parent
bd072d54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
include/pybind11/cast.h
+5
-4
No files found.
include/pybind11/cast.h
View file @
593587b2
...
...
@@ -1186,8 +1186,6 @@ public:
// clang-format on
struct
smart_holder_type_caster_class_hooks
{
using
is_smart_holder_type_caster
=
std
::
true_type
;
static
decltype
(
&
modified_type_caster_generic_load_impl
::
local_load
)
get_local_load_function_ptr
()
{
return
&
modified_type_caster_generic_load_impl
::
local_load
;
...
...
@@ -2456,14 +2454,17 @@ template <typename T> using move_never = none_of<move_always<T>, move_if_unrefer
template
<
typename
T
,
typename
SFINAE
=
void
>
struct
is_smart_holder_type_caster
:
std
::
false_type
{};
template
<
typename
T
>
struct
is_smart_holder_type_caster
<
T
,
typename
std
::
enable_if
<
type_caster
<
T
>::
is_smart_holder_type_caster
::
value
,
void
>::
type
>
:
std
::
true_type
{};
typename
std
::
enable_if
<
std
::
is_base_of
<
smart_holder_type_caster_class_hooks
,
make_caster
<
T
>>::
value
>::
type
>
:
std
::
true_type
{};
template
<
typename
T
>
inline
bool
check_is_smart_holder_type_caster
()
{
return
detail
::
is_smart_holder_type_caster
<
T
>::
value
;
return
is_smart_holder_type_caster
<
T
>::
value
;
}
// Detect whether returning a `type` from a cast on type's type_caster is going to result in a
...
...
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