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
d7d0d818
Commit
d7d0d818
authored
Apr 05, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings on GCC
parent
6db510a7
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
37 deletions
+16
-37
libcaf_core/caf/downstream.hpp
libcaf_core/caf/downstream.hpp
+2
-2
libcaf_core/caf/scheduled_actor.hpp
libcaf_core/caf/scheduled_actor.hpp
+6
-6
libcaf_core/caf/upstream.hpp
libcaf_core/caf/upstream.hpp
+2
-2
libcaf_core/test/config_option.cpp
libcaf_core/test/config_option.cpp
+2
-1
libcaf_io/caf/io/network/asio_multiplexer_impl.hpp
libcaf_io/caf/io/network/asio_multiplexer_impl.hpp
+2
-2
libcaf_io/src/middleman.cpp
libcaf_io/src/middleman.cpp
+2
-2
libcaf_test/caf/test/dsl.hpp
libcaf_test/caf/test/dsl.hpp
+0
-22
No files found.
libcaf_core/caf/downstream.hpp
View file @
d7d0d818
...
...
@@ -36,8 +36,8 @@ public:
using
chunk
=
std
::
vector
<
T
>
;
downstream
(
local_actor
*
ptr
,
const
stream_id
&
sid
,
typename
abstract_downstream
::
policy_ptr
p
olicy
)
:
abstract_downstream
(
ptr
,
sid
,
std
::
move
(
p
olicy
))
{
typename
abstract_downstream
::
policy_ptr
p
ptr
)
:
abstract_downstream
(
ptr
,
sid
,
std
::
move
(
p
ptr
))
{
// nop
}
...
...
libcaf_core/caf/scheduled_actor.hpp
View file @
d7d0d818
...
...
@@ -436,7 +436,7 @@ public:
template
<
class
In
,
class
...
Ts
,
class
Init
,
class
Fun
,
class
Cleanup
>
annotated_stream
<
typename
stream_stage_trait_t
<
Fun
>::
output
,
Ts
...
>
add_stage
(
const
stream
<
In
>&
in
,
std
::
tuple
<
Ts
...
>
xs
,
Init
init
,
Fun
fun
,
Cleanup
cleanup
,
upstream_policy_ptr
upolicy
=
nullptr
,
Cleanup
cleanup
_fun
,
upstream_policy_ptr
upolicy
=
nullptr
,
downstream_policy_ptr
dpolicy
=
nullptr
)
{
CAF_ASSERT
(
current_mailbox_element
()
!=
nullptr
);
using
output_type
=
typename
stream_stage_trait_t
<
Fun
>::
output
;
...
...
@@ -462,7 +462,7 @@ public:
dpolicy
.
reset
(
new
policy
::
anycast
);
auto
ptr
=
make_counted
<
impl
>
(
this
,
sid
,
std
::
move
(
upolicy
),
std
::
move
(
dpolicy
),
std
::
move
(
fun
),
std
::
move
(
cleanup
));
std
::
move
(
cleanup
_fun
));
init
(
ptr
->
state
());
streams_
.
emplace
(
sid
,
ptr
);
// Add downstream with 0 credit.
...
...
@@ -474,15 +474,15 @@ public:
/// Adds a stream stage to this actor.
template
<
class
In
,
class
Init
,
class
Fun
,
class
Cleanup
>
stream
<
typename
stream_stage_trait_t
<
Fun
>::
output
>
add_stage
(
const
stream
<
In
>&
in
,
Init
init
,
Fun
fun
,
Cleanup
cleanup
)
{
add_stage
(
const
stream
<
In
>&
in
,
Init
init
,
Fun
fun
,
Cleanup
cleanup
_fun
)
{
return
add_stage
(
in
,
std
::
make_tuple
(),
std
::
move
(
init
),
std
::
move
(
fun
),
std
::
move
(
cleanup
));
std
::
move
(
fun
),
std
::
move
(
cleanup
_fun
));
}
/// Adds a stream sink to this actor.
template
<
class
In
,
class
Init
,
class
Fun
,
class
Finalize
>
stream_result
<
typename
stream_sink_trait_t
<
Fun
,
Finalize
>::
output
>
add_sink
(
const
stream
<
In
>&
in
,
Init
init
,
Fun
fun
,
Finalize
finalize
,
add_sink
(
const
stream
<
In
>&
in
,
Init
init
,
Fun
fun
,
Finalize
finalize
_fun
,
upstream_policy_ptr
upolicy
=
nullptr
)
{
CAF_ASSERT
(
current_mailbox_element
()
!=
nullptr
);
//using output_type = typename stream_sink_trait_t<Fun, Finalize>::output;
...
...
@@ -509,7 +509,7 @@ public:
auto
ptr
=
make_counted
<
impl
>
(
this
,
std
::
move
(
upolicy
),
std
::
move
(
mptr
->
sender
),
std
::
move
(
mptr
->
stages
),
mptr
->
mid
,
std
::
move
(
fun
),
std
::
move
(
finalize
));
std
::
move
(
fun
),
std
::
move
(
finalize
_fun
));
init
(
ptr
->
state
());
streams_
.
emplace
(
in
.
id
(),
ptr
);
return
{
in
.
id
(),
std
::
move
(
ptr
)};
...
...
libcaf_core/caf/upstream.hpp
View file @
d7d0d818
...
...
@@ -27,8 +27,8 @@ namespace caf {
template
<
class
T
>
class
upstream
:
public
abstract_upstream
{
public:
upstream
(
local_actor
*
self
,
typename
abstract_upstream
::
policy_ptr
ptr
)
:
abstract_upstream
(
self
,
std
::
move
(
ptr
))
{
upstream
(
local_actor
*
self
ptr
,
typename
abstract_upstream
::
policy_ptr
ptr
)
:
abstract_upstream
(
self
ptr
,
std
::
move
(
ptr
))
{
// nop
}
};
...
...
libcaf_core/test/config_option.cpp
View file @
d7d0d818
...
...
@@ -27,10 +27,11 @@
// turn off several flags for overflows / sign conversion
#ifdef CAF_CLANG
//#elif defined(CAF_CLANG)
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wfloat-equal"
#pragma clang diagnostic ignored "-Wconstant-conversion"
#elif defined(CAF_GCC)
#pragma GCC diagnostic ignored "-Woverflow"
#endif
using
namespace
caf
;
...
...
libcaf_io/caf/io/network/asio_multiplexer_impl.hpp
View file @
d7d0d818
...
...
@@ -194,9 +194,9 @@ doorman_ptr asio_multiplexer::new_doorman(asio_tcp_socket_acceptor&& sock) {
return
false
;
auto
&
am
=
acceptor_
.
backend
();
auto
sptr
=
am
.
new_scribe
(
std
::
move
(
acceptor_
.
accepted_socket
()));
auto
hdl
=
sptr
->
hdl
();
auto
s
hdl
=
sptr
->
hdl
();
parent
()
->
add_scribe
(
std
::
move
(
sptr
));
return
doorman
::
new_connection
(
&
am
,
hdl
);
return
doorman
::
new_connection
(
&
am
,
s
hdl
);
}
void
stop_reading
()
override
{
CAF_LOG_TRACE
(
""
);
...
...
libcaf_io/src/middleman.cpp
View file @
d7d0d818
...
...
@@ -275,9 +275,9 @@ void middleman::start() {
class
stream_serv
:
public
raw_event_based_actor
,
public
detail
::
stream_multiplexer
::
backend
{
public:
stream_serv
(
actor_config
&
cfg
,
actor
basp
)
stream_serv
(
actor_config
&
cfg
,
actor
basp
_ref
)
:
raw_event_based_actor
(
cfg
),
detail
::
stream_multiplexer
::
backend
(
std
::
move
(
basp
)),
detail
::
stream_multiplexer
::
backend
(
std
::
move
(
basp
_ref
)),
incoming_
(
this
,
*
this
),
outgoing_
(
this
,
*
this
)
{
// nop
...
...
libcaf_test/caf/test/dsl.hpp
View file @
d7d0d818
...
...
@@ -150,28 +150,6 @@ private:
const
Tup
&
xs_
;
};
template
<
class
T
>
struct
match_helper
{
T
&
ref
;
template
<
class
...
Fs
>
void
operator
()(
Fs
...
fs
)
{
struct
impl
:
Fs
...
{
using
result_type
=
void
;
impl
(
Fs
...
xs
)
:
Fs
(
xs
)...
{
// nop
}
};
impl
visitor
{
std
::
move
(
fs
)...};
apply_visitor
(
ref
,
visitor
);
}
};
template
<
class
T
>
match_helper
<
T
>
match
(
T
&
x
)
{
return
{
x
};
}
template
<
class
Derived
>
class
expect_clause_base
{
public:
...
...
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