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
e96daa80
Unverified
Commit
e96daa80
authored
Aug 27, 2019
by
Dominik Charousset
Committed by
GitHub
Aug 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #887
Fix linker issue when building with Clang 7
parents
53ab97d2
832055b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
libcaf_core/caf/config_value.hpp
libcaf_core/caf/config_value.hpp
+3
-3
libcaf_core/caf/default_sum_type_access.hpp
libcaf_core/caf/default_sum_type_access.hpp
+3
-3
libcaf_core/caf/sum_type_token.hpp
libcaf_core/caf/sum_type_token.hpp
+6
-3
No files found.
libcaf_core/caf/config_value.hpp
View file @
e96daa80
...
...
@@ -263,7 +263,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
static
bool
is
(
const
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
is
(
token
.
pos
);
return
x
.
get_data
().
is
(
pos
(
token
)
);
}
template
<
class
U
>
...
...
@@ -273,7 +273,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
static
U
&
get
(
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
get
(
token
.
pos
);
return
x
.
get_data
().
get
(
pos
(
token
)
);
}
template
<
class
U
>
...
...
@@ -283,7 +283,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
static
const
U
&
get
(
const
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
get
(
token
.
pos
);
return
x
.
get_data
().
get
(
pos
(
token
)
);
}
template
<
class
U
>
...
...
libcaf_core/caf/default_sum_type_access.hpp
View file @
e96daa80
...
...
@@ -39,17 +39,17 @@ struct default_sum_type_access {
template
<
class
U
,
int
Pos
>
static
bool
is
(
const
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
is
(
token
.
pos
);
return
x
.
get_data
().
is
(
pos
(
token
)
);
}
template
<
class
U
,
int
Pos
>
static
U
&
get
(
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
get
(
token
.
pos
);
return
x
.
get_data
().
get
(
pos
(
token
)
);
}
template
<
class
U
,
int
Pos
>
static
const
U
&
get
(
const
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
get
(
token
.
pos
);
return
x
.
get_data
().
get
(
pos
(
token
)
);
}
template
<
class
U
,
int
Pos
>
...
...
libcaf_core/caf/sum_type_token.hpp
View file @
e96daa80
...
...
@@ -23,8 +23,11 @@
namespace
caf
{
template
<
class
T
,
int
Pos
>
struct
sum_type_token
{
static
constexpr
auto
pos
=
std
::
integral_constant
<
int
,
Pos
>
{};
};
struct
sum_type_token
{};
template
<
class
T
,
int
Pos
>
constexpr
std
::
integral_constant
<
int
,
Pos
>
pos
(
sum_type_token
<
T
,
Pos
>
)
{
return
{};
}
}
// namespace caf
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