Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
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_abseil
Commits
014b66ea
Commit
014b66ea
authored
Feb 12, 2021
by
Ken Oslund
Committed by
Copybara-Service
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change
PiperOrigin-RevId: 357275352
parent
dc0479f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
pybind11_abseil/status_casters.h
+3
-5
No files found.
pybind11_abseil/status_casters.h
View file @
014b66ea
...
@@ -89,19 +89,17 @@ struct type_caster<absl::Status> : public type_caster_base<absl::Status> {
...
@@ -89,19 +89,17 @@ struct type_caster<absl::Status> : public type_caster_base<absl::Status> {
static
handle
cast
(
const
absl
::
Status
*
src
,
return_value_policy
policy
,
static
handle
cast
(
const
absl
::
Status
*
src
,
return_value_policy
policy
,
handle
parent
,
bool
throw_exception
=
true
)
{
handle
parent
,
bool
throw_exception
=
true
)
{
if
(
!
src
)
return
none
().
release
();
if
(
!
src
)
return
none
().
release
();
return
cast_impl
<
const
absl
::
Status
&>
(
*
src
,
policy
,
parent
,
return
cast_impl
(
*
src
,
policy
,
parent
,
throw_exception
);
throw_exception
);
}
}
static
handle
cast
(
const
absl
::
Status
&
src
,
return_value_policy
policy
,
static
handle
cast
(
const
absl
::
Status
&
src
,
return_value_policy
policy
,
handle
parent
,
bool
throw_exception
=
true
)
{
handle
parent
,
bool
throw_exception
=
true
)
{
return
cast_impl
<
const
absl
::
Status
&>
(
src
,
policy
,
parent
,
throw_exception
);
return
cast_impl
(
src
,
policy
,
parent
,
throw_exception
);
}
}
static
handle
cast
(
absl
::
Status
&&
src
,
return_value_policy
policy
,
static
handle
cast
(
absl
::
Status
&&
src
,
return_value_policy
policy
,
handle
parent
,
bool
throw_exception
=
true
)
{
handle
parent
,
bool
throw_exception
=
true
)
{
return
cast_impl
<
absl
::
Status
&&>
(
std
::
move
(
src
),
policy
,
parent
,
return
cast_impl
(
std
::
move
(
src
),
policy
,
parent
,
throw_exception
);
throw_exception
);
}
}
private
:
private
:
...
...
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