Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
6d0fec16
Commit
6d0fec16
authored
Jun 22, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several warnings on Clang
parent
14b4464a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/main.cpp
src/main.cpp
+8
-4
No files found.
src/main.cpp
View file @
6d0fec16
...
...
@@ -100,8 +100,9 @@ void register_class(atom_value*, pybind11::module& m,
auto
cmp
=
[](
atom_value
x
,
atom_value
y
)
{
return
x
==
y
;
};
std
::
string
(
*
to_string_fun
)(
const
atom_value
&
)
=
&
to_string
;
pybind11
::
class_
<
atom_value
>
(
m
,
name
.
c_str
())
.
def
(
"__str__"
,
(
std
::
string
(
*
)(
const
atom_value
&
))
&
to_string
)
.
def
(
"__str__"
,
to_string_fun
)
.
def
(
"__repr__"
,
repr_fun
)
.
def
(
"__eq__"
,
cmp
);
}
...
...
@@ -275,8 +276,8 @@ public:
friend
void
serialize
(
serializer
&
sink
,
absolute_receive_timeout
&
x
,
const
unsigned
int
)
{
auto
tse
=
x
.
x_
.
time_since_epoch
();
uint64_t
ms_since_epoch
=
std
::
chrono
::
duration_cast
<
ms
>
(
tse
).
count
();
sink
<<
ms_since_epoch
;
auto
ms_since_epoch
=
std
::
chrono
::
duration_cast
<
ms
>
(
tse
).
count
();
sink
<<
static_cast
<
uint64_t
>
(
ms_since_epoch
)
;
}
friend
void
serialize
(
deserializer
&
source
,
absolute_receive_timeout
&
x
,
...
...
@@ -359,7 +360,6 @@ public:
<<
"
\"\"\"
"
<<
full_pre_run
<<
"
\"\"\"
"
<<
endl
//<< join(lines, ",\n") << endl
<<
"]"
<<
endl
<<
"c.PromptManager.in_template = ' $: '"
<<
endl
<<
"c.PromptManager.in2_template = ' -> '"
<<
endl
...
...
@@ -423,8 +423,12 @@ struct py_context {
scoped_actor
&
self
;
};
namespace
{
py_context
*
s_context
;
}
// namespace <anonymous>
inline
void
set_py_exception_fill
(
std
::
ostream
&
)
{
// end of recursion
}
...
...
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