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
0f642844
Commit
0f642844
authored
Aug 05, 2023
by
Samir Halilcevic
Committed by
Dominik Charousset
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings on Linux
parent
10a157f0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
libcaf_core/caf/expected.hpp
libcaf_core/caf/expected.hpp
+3
-3
libcaf_core/caf/scheduled_actor.cpp
libcaf_core/caf/scheduled_actor.cpp
+1
-1
libcaf_core/caf/typed_actor.hpp
libcaf_core/caf/typed_actor.hpp
+4
-0
libcaf_net/caf/net/http/arg_parser.hpp
libcaf_net/caf/net/http/arg_parser.hpp
+1
-1
libcaf_net/caf/net/http/request_header.hpp
libcaf_net/caf/net/http/request_header.hpp
+1
-1
No files found.
libcaf_core/caf/expected.hpp
View file @
0f642844
...
@@ -804,7 +804,7 @@ public:
...
@@ -804,7 +804,7 @@ public:
if
(
has_value
())
if
(
has_value
())
return
f
();
return
f
();
else
else
return
res_t
{
std
::
move
(
*
error_
)
};
return
res_t
{
*
error_
};
}
}
template
<
class
F
>
template
<
class
F
>
...
@@ -864,7 +864,7 @@ public:
...
@@ -864,7 +864,7 @@ public:
if
constexpr
(
std
::
is_void_v
<
res_t
>
)
{
if
constexpr
(
std
::
is_void_v
<
res_t
>
)
{
if
(
!
has_value
())
if
(
!
has_value
())
f
(
std
::
move
(
*
error_
));
f
(
std
::
move
(
*
error_
));
return
std
::
move
(
*
this
)
;
return
*
this
;
}
else
{
}
else
{
static_assert
(
std
::
is_same_v
<
expected
,
res_t
>
,
static_assert
(
std
::
is_same_v
<
expected
,
res_t
>
,
"F must return expected<T> or void"
);
"F must return expected<T> or void"
);
...
@@ -916,7 +916,7 @@ public:
...
@@ -916,7 +916,7 @@ public:
if
(
has_value
())
if
(
has_value
())
return
detail
::
expected_from_fn
(
std
::
forward
<
F
>
(
f
));
return
detail
::
expected_from_fn
(
std
::
forward
<
F
>
(
f
));
else
else
return
expected
<
res_t
>
{
std
::
move
(
*
error_
)
};
return
expected
<
res_t
>
{
*
error_
};
}
}
template
<
class
F
>
template
<
class
F
>
...
...
libcaf_core/caf/scheduled_actor.cpp
View file @
0f642844
...
@@ -526,7 +526,7 @@ scheduled_actor::categorize(mailbox_element& x) {
...
@@ -526,7 +526,7 @@ scheduled_actor::categorize(mailbox_element& x) {
auto
&
what
=
content
.
get_as
<
std
::
string
>
(
2
);
auto
&
what
=
content
.
get_as
<
std
::
string
>
(
2
);
if
(
what
==
"info"
)
{
if
(
what
==
"info"
)
{
CAF_LOG_DEBUG
(
"reply to 'info' message"
);
CAF_LOG_DEBUG
(
"reply to 'info' message"
);
rp
.
deliver
(
ok_atom_v
,
std
::
move
(
what
)
,
strong_actor_ptr
{
ctrl
()},
name
());
rp
.
deliver
(
ok_atom_v
,
what
,
strong_actor_ptr
{
ctrl
()},
name
());
}
else
{
}
else
{
rp
.
deliver
(
make_error
(
sec
::
unsupported_sys_key
));
rp
.
deliver
(
make_error
(
sec
::
unsupported_sys_key
));
}
}
...
...
libcaf_core/caf/typed_actor.hpp
View file @
0f642844
...
@@ -298,6 +298,8 @@ bool operator!=(std::nullptr_t, const typed_actor<Xs...>& x) noexcept {
...
@@ -298,6 +298,8 @@ bool operator!=(std::nullptr_t, const typed_actor<Xs...>& x) noexcept {
return
!
(
x
==
nullptr
);
return
!
(
x
==
nullptr
);
}
}
CAF_PUSH_DEPRECATED_WARNING
/// Returns a new actor that implements the composition `f.g(x) = f(g(x))`.
/// Returns a new actor that implements the composition `f.g(x) = f(g(x))`.
/// @relates typed_actor
/// @relates typed_actor
template
<
class
...
Xs
,
class
...
Ys
>
template
<
class
...
Xs
,
class
...
Ys
>
...
@@ -314,6 +316,8 @@ operator*(typed_actor<Xs...> f, typed_actor<Ys...> g) {
...
@@ -314,6 +316,8 @@ operator*(typed_actor<Xs...> f, typed_actor<Ys...> g) {
actor_cast
<
strong_actor_ptr
>
(
std
::
move
(
g
)),
std
::
move
(
mts
));
actor_cast
<
strong_actor_ptr
>
(
std
::
move
(
g
)),
std
::
move
(
mts
));
}
}
CAF_POP_WARNINGS
}
// namespace caf
}
// namespace caf
// allow typed_actor to be used in hash maps
// allow typed_actor to be used in hash maps
...
...
libcaf_net/caf/net/http/arg_parser.hpp
View file @
0f642844
...
@@ -29,7 +29,7 @@ struct builtin_arg_parser {
...
@@ -29,7 +29,7 @@ struct builtin_arg_parser {
if
(
auto
err
=
detail
::
parse
(
str
,
tmp
);
!
err
)
if
(
auto
err
=
detail
::
parse
(
str
,
tmp
);
!
err
)
return
tmp
;
return
tmp
;
else
else
return
{}
;
return
std
::
nullopt
;
}
}
};
};
...
...
libcaf_net/caf/net/http/request_header.hpp
View file @
0f642844
...
@@ -121,7 +121,7 @@ public:
...
@@ -121,7 +121,7 @@ public:
if
(
auto
res
=
caf
::
get_as
<
T
>
(
val
))
if
(
auto
res
=
caf
::
get_as
<
T
>
(
val
))
return
std
::
move
(
*
res
);
return
std
::
move
(
*
res
);
}
}
return
{}
;
return
std
::
nullopt
;
}
}
/// Executes the provided callable `f` for each field in the request header.
/// Executes the provided callable `f` for each field in the request header.
...
...
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