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
7b82c18b
Commit
7b82c18b
authored
Mar 03, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small improvement
parent
5ca290af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
cppa/detail/invokable.hpp
cppa/detail/invokable.hpp
+3
-13
No files found.
cppa/detail/invokable.hpp
View file @
7b82c18b
...
@@ -112,7 +112,6 @@ class invokable : public invokable_base
...
@@ -112,7 +112,6 @@ class invokable : public invokable_base
public:
public:
virtual
bool
matches_values
()
const
=
0
;
// Checks whether the types of @p value match the pattern.
// Checks whether the types of @p value match the pattern.
virtual
bool
types_match
(
any_tuple
const
&
value
)
const
=
0
;
virtual
bool
types_match
(
any_tuple
const
&
value
)
const
=
0
;
// Checks whether this invokable could be invoked with @p value.
// Checks whether this invokable could be invoked with @p value.
...
@@ -171,11 +170,6 @@ class invokable_impl : public invokable
...
@@ -171,11 +170,6 @@ class invokable_impl : public invokable
}
}
bool
matches_values
()
const
{
return
m_pattern
->
has_values
();
}
bool
types_match
(
any_tuple
const
&
value
)
const
bool
types_match
(
any_tuple
const
&
value
)
const
{
{
return
match_types
(
value
,
*
m_pattern
);
return
match_types
(
value
,
*
m_pattern
);
...
@@ -224,9 +218,10 @@ class invokable_impl<0, Fun, Tuple, Pattern> : public invokable
...
@@ -224,9 +218,10 @@ class invokable_impl<0, Fun, Tuple, Pattern> : public invokable
std
::
unique_ptr
<
Pattern
>
m_pattern
;
std
::
unique_ptr
<
Pattern
>
m_pattern
;
template
<
typename
...
P
>
template
<
typename
...
P
>
bool
unsafe_vmatch
(
any_tuple
const
&
t
,
pattern
<
P
...
>
const
&
p
)
const
inline
bool
unsafe_vmatch
(
any_tuple
const
&
t
,
pattern
<
P
...
>
const
&
p
)
const
{
{
return
matcher
<
Pattern
::
wildcard_pos
,
P
...
>::
vmatch
(
t
,
p
);
return
p
.
has_values
()
==
false
||
matcher
<
Pattern
::
wildcard_pos
,
P
...
>::
vmatch
(
t
,
p
);
}
}
public:
public:
...
@@ -257,11 +252,6 @@ class invokable_impl<0, Fun, Tuple, Pattern> : public invokable
...
@@ -257,11 +252,6 @@ class invokable_impl<0, Fun, Tuple, Pattern> : public invokable
return
false
;
return
false
;
}
}
bool
matches_values
()
const
{
return
m_pattern
->
has_values
();
}
bool
types_match
(
any_tuple
const
&
value
)
const
bool
types_match
(
any_tuple
const
&
value
)
const
{
{
return
match_types
(
value
,
*
m_pattern
);
return
match_types
(
value
,
*
m_pattern
);
...
...
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