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
f2f7ee39
Commit
f2f7ee39
authored
Dec 09, 2015
by
Marian Triebe
Committed by
Dominik Charousset
Jan 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile with GCC 4.9
parent
6f84e70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+1
-1
libcaf_core/src/node_id.cpp
libcaf_core/src/node_id.cpp
+7
-2
No files found.
libcaf_core/src/local_actor.cpp
View file @
f2f7ee39
...
...
@@ -473,7 +473,7 @@ private:
message_id
local_actor
::
new_request_id
(
message_priority
mp
)
{
auto
result
=
++
last_request_id_
;
pending_responses_
.
emplace_front
(
result
.
response_id
(),
behavior
{});
pending_responses_
.
emplace_front
(
result
.
response_id
(),
behavior
{}
,
nullptr
);
return
mp
==
message_priority
::
normal
?
result
:
result
.
with_high_priority
();
}
...
...
libcaf_core/src/node_id.cpp
View file @
f2f7ee39
...
...
@@ -20,6 +20,7 @@
#include <cstdio>
#include <cstring>
#include <sstream>
#include <iterator>
#include "caf/config.hpp"
#include "caf/node_id.hpp"
...
...
@@ -234,8 +235,12 @@ void node_id::from_string(const std::string& str) {
if
(
!
std
::
all_of
(
sep
+
1
,
eos
,
::
isdigit
))
return
;
// iterate two digits in the input string as one byte in hex format
struct
hex_byte_iter
{
std
::
string
::
const_iterator
i
;
struct
hex_byte_iter
:
std
::
iterator
<
std
::
input_iterator_tag
,
uint8_t
>
{
using
const_iterator
=
std
::
string
::
const_iterator
;
const_iterator
i
;
hex_byte_iter
(
std
::
string
::
const_iterator
x
)
:
i
(
x
)
{
// nop
}
uint8_t
operator
*
()
const
{
return
(
hex_nibble
(
*
i
)
<<
4
)
|
hex_nibble
(
*
(
i
+
1
));
}
...
...
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