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
e9969739
Commit
e9969739
authored
Jan 20, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relocate `static_assert` for misuse of atoms
parent
e6484fce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
libcaf_core/caf/check_typed_input.hpp
libcaf_core/caf/check_typed_input.hpp
+6
-0
libcaf_core/caf/detail/typed_actor_util.hpp
libcaf_core/caf/detail/typed_actor_util.hpp
+0
-6
No files found.
libcaf_core/caf/check_typed_input.hpp
View file @
e9969739
...
...
@@ -32,6 +32,12 @@ namespace caf {
template
<
template
<
class
...
>
class
R
,
class
...
Rs
,
template
<
class
...
>
class
L
,
class
...
Ls
>
constexpr
int
check_typed_input
(
const
R
<
Rs
...
>&
,
const
L
<
Ls
...
>&
)
{
static_assert
(
detail
::
tl_find
<
detail
::
type_list
<
Ls
...
>
,
atom_value
>::
value
==
-
1
,
"atom(...) notation is not sufficient for static type "
"checking, please use atom_constant instead in this context"
);
static_assert
(
detail
::
tl_find_if
<
detail
::
type_list
<
Rs
...
>
,
detail
::
input_is
<
detail
::
type_list
<
Ls
...
>>::
template
eval
...
...
libcaf_core/caf/detail/typed_actor_util.hpp
View file @
e9969739
...
...
@@ -165,12 +165,6 @@ struct deduce_lifted_output_type<type_list<typed_continue_helper<R>>> {
template
<
class
Signatures
,
typename
InputTypes
>
struct
deduce_output_type
{
static_assert
(
tl_find
<
InputTypes
,
atom_value
>::
value
==
-
1
,
"atom(...) notation is not sufficient for static type "
"checking, please use atom_constant instead in this context"
);
static
constexpr
int
input_pos
=
tl_find_if
<
Signatures
,
...
...
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