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
832055b6
Commit
832055b6
authored
Aug 22, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linker issue when building with Clang 7
parent
097df535
Changes
3
Show 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 @
832055b6
...
@@ -268,7 +268,7 @@ struct sum_type_access<config_value> {
...
@@ -268,7 +268,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
template
<
class
U
,
int
Pos
>
static
bool
is
(
const
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
>
...
@@ -278,7 +278,7 @@ struct sum_type_access<config_value> {
...
@@ -278,7 +278,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
template
<
class
U
,
int
Pos
>
static
U
&
get
(
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
>
...
@@ -288,7 +288,7 @@ struct sum_type_access<config_value> {
...
@@ -288,7 +288,7 @@ struct sum_type_access<config_value> {
template
<
class
U
,
int
Pos
>
template
<
class
U
,
int
Pos
>
static
const
U
&
get
(
const
config_value
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
>
...
...
libcaf_core/caf/default_sum_type_access.hpp
View file @
832055b6
...
@@ -39,17 +39,17 @@ struct default_sum_type_access {
...
@@ -39,17 +39,17 @@ struct default_sum_type_access {
template
<
class
U
,
int
Pos
>
template
<
class
U
,
int
Pos
>
static
bool
is
(
const
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
,
int
Pos
>
static
U
&
get
(
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
,
int
Pos
>
static
const
U
&
get
(
const
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
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
>
template
<
class
U
,
int
Pos
>
...
...
libcaf_core/caf/sum_type_token.hpp
View file @
832055b6
...
@@ -23,8 +23,11 @@
...
@@ -23,8 +23,11 @@
namespace
caf
{
namespace
caf
{
template
<
class
T
,
int
Pos
>
template
<
class
T
,
int
Pos
>
struct
sum_type_token
{
struct
sum_type_token
{};
static
constexpr
auto
pos
=
std
::
integral_constant
<
int
,
Pos
>
{};
};
template
<
class
T
,
int
Pos
>
constexpr
std
::
integral_constant
<
int
,
Pos
>
pos
(
sum_type_token
<
T
,
Pos
>
)
{
return
{};
}
}
// namespace caf
}
// 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