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
f3f53e2b
Commit
f3f53e2b
authored
Sep 11, 2016
by
Jason Rhinelander
Browse files
Removed unused/unwanted public ref_cast
parent
7dfb932e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
include/pybind11/cast.h
include/pybind11/cast.h
+0
-3
No files found.
include/pybind11/cast.h
View file @
f3f53e2b
...
@@ -935,9 +935,6 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value
...
@@ -935,9 +935,6 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value
template
<
typename
T
>
detail
::
enable_if_t
<
detail
::
move_never
<
T
>::
value
,
T
>
cast
(
object
&&
object
)
{
template
<
typename
T
>
detail
::
enable_if_t
<
detail
::
move_never
<
T
>::
value
,
T
>
cast
(
object
&&
object
)
{
return
cast
<
T
>
(
object
);
return
cast
<
T
>
(
object
);
}
}
// Provide a ref_cast() with move support for objects (only participates for moveable types)
template
<
typename
T
>
detail
::
enable_if_t
<
detail
::
move_is_plain_type
<
T
>::
value
,
T
>
ref_cast
(
object
&&
object
)
{
return
cast
<
T
>
(
std
::
move
(
object
));
}
template
<
typename
T
>
T
object
::
cast
()
const
&
{
return
pybind11
::
cast
<
T
>
(
*
this
);
}
template
<
typename
T
>
T
object
::
cast
()
const
&
{
return
pybind11
::
cast
<
T
>
(
*
this
);
}
template
<
typename
T
>
T
object
::
cast
()
&&
{
return
pybind11
::
cast
<
T
>
(
std
::
move
(
*
this
));
}
template
<
typename
T
>
T
object
::
cast
()
&&
{
return
pybind11
::
cast
<
T
>
(
std
::
move
(
*
this
));
}
...
...
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