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
11761446
Commit
11761446
authored
Apr 04, 2022
by
Xiaofei Wang
Committed by
Copybara-Service
Apr 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change
PiperOrigin-RevId: 439442845
parent
0c34237f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
WORKSPACE
+2
-3
pybind11_abseil/absl_casters.h
+5
-5
No files found.
WORKSPACE
View file @
11761446
...
...
@@ -30,9 +30,8 @@ http_archive(
http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
strip_prefix = "pybind11-2.8.1",
sha256 = "f1bcc07caa568eb312411dde5308b1e250bd0e1bc020fae855bf9f43209940cc",
urls = ["https://github.com/pybind/pybind11/archive/refs/tags/v2.8.1.tar.gz"],
strip_prefix = "pybind11-master",
urls = ["https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz"],
)
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python")
pybind11_abseil/absl_casters.h
View file @
11761446
...
...
@@ -83,7 +83,7 @@ inline absl::TimeZone GetTimeZone(handle src) {
template
<>
struct
type_caster
<
absl
::
TimeZone
>
{
public
:
PYBIND11_TYPE_CASTER
(
absl
::
TimeZone
,
_
<
absl
::
TimeZone
>
(
));
PYBIND11_TYPE_CASTER
(
absl
::
TimeZone
,
const_name
(
"absl::TimeZone"
));
// Conversion part 1 (Python->C++)
bool
load
(
handle
src
,
bool
convert
)
{
...
...
@@ -111,7 +111,7 @@ struct type_caster<absl::Duration> {
public
:
// This macro establishes the name 'absl::Duration' in function signatures
// and declares a local variable 'value' of type absl::Duration.
PYBIND11_TYPE_CASTER
(
absl
::
Duration
,
_
<
absl
::
Duration
>
(
));
PYBIND11_TYPE_CASTER
(
absl
::
Duration
,
const_name
(
"absl::Duration"
));
// Conversion part 1 (Python->C++)
bool
load
(
handle
src
,
bool
convert
)
{
...
...
@@ -144,7 +144,7 @@ struct type_caster<absl::Time> {
public
:
// This macro establishes the name 'absl::Time' in function signatures
// and declares a local variable 'value' of type absl::Time.
PYBIND11_TYPE_CASTER
(
absl
::
Time
,
_
<
absl
::
Time
>
(
));
PYBIND11_TYPE_CASTER
(
absl
::
Time
,
const_name
(
"absl::Time"
));
// Conversion part 1 (Python->C++)
bool
load
(
handle
src
,
bool
convert
)
{
...
...
@@ -205,7 +205,7 @@ struct type_caster<absl::Time> {
template
<
typename
CivilTimeType
>
struct
absl_civil_time_caster
{
public
:
PYBIND11_TYPE_CASTER
(
CivilTimeType
,
_
<
CivilTimeType
>
(
));
PYBIND11_TYPE_CASTER
(
CivilTimeType
,
const_name
(
"CivilTimeType"
));
bool
load
(
handle
src
,
bool
convert
)
{
if
(
!
convert
||
!
hasattr
(
src
,
"year"
)
||
!
hasattr
(
src
,
"month"
)
||
...
...
@@ -416,7 +416,7 @@ template <>
struct
type_caster
<
absl
::
Cord
>
{
public
:
using
StringViewCaster
=
make_caster
<
absl
::
string_view
>
;
PYBIND11_TYPE_CASTER
(
absl
::
Cord
,
_
<
absl
::
Cord
>
(
));
PYBIND11_TYPE_CASTER
(
absl
::
Cord
,
const_name
(
"absl::Cord"
));
// Conversion part 1 (Python->C++)
bool
load
(
handle
src
,
bool
convert
)
{
...
...
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