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
948f2f8c
Commit
948f2f8c
authored
Jun 23, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete concept
parent
88a78a43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
19 deletions
+0
-19
libcaf_core/caf/default_sum_type_access.hpp
libcaf_core/caf/default_sum_type_access.hpp
+0
-2
libcaf_core/caf/sum_type.hpp
libcaf_core/caf/sum_type.hpp
+0
-7
libcaf_core/caf/sum_type_access.hpp
libcaf_core/caf/sum_type_access.hpp
+0
-10
No files found.
libcaf_core/caf/default_sum_type_access.hpp
View file @
948f2f8c
...
...
@@ -37,8 +37,6 @@ struct default_sum_type_access {
static
constexpr
bool
specialized
=
true
;
static
constexpr
bool
immutable
=
false
;
template
<
class
U
,
int
Pos
>
static
bool
is
(
const
T
&
x
,
sum_type_token
<
U
,
Pos
>
token
)
{
return
x
.
get_data
().
is
(
token
.
pos
);
...
...
libcaf_core/caf/sum_type.hpp
View file @
948f2f8c
...
...
@@ -32,13 +32,6 @@ constexpr bool SumType() {
return
has_sum_type_access
<
typename
std
::
decay
<
T
>::
type
>::
value
;
}
/// Concept for checking whether `T` supports the sum type API by specializing
/// `sum_type_access` and grants non-const element access.
template
<
class
T
>
constexpr
bool
MutableSumType
()
{
return
has_mutable_sum_type_access
<
typename
std
::
decay
<
T
>::
type
>::
value
;
}
/// Concept for checking whether all `Ts` support the sum type API by
/// specializing `sum_type_access`.
template
<
class
...
Ts
>
...
...
libcaf_core/caf/sum_type_access.hpp
View file @
948f2f8c
...
...
@@ -28,7 +28,6 @@ namespace caf {
template
<
class
T
>
struct
sum_type_access
{
static
constexpr
bool
specialized
=
false
;
static
constexpr
bool
immutable
=
false
;
};
/// Evaluates to `true` if `T` specializes `sum_type_access`.
...
...
@@ -38,13 +37,4 @@ struct has_sum_type_access {
static
constexpr
bool
value
=
sum_type_access
<
T
>::
specialized
;
};
/// Evaluates to `true` if `T` specializes `sum_type_access` and allows
/// non-const element access.
/// @relates SumType
template
<
class
T
>
struct
has_mutable_sum_type_access
{
static
constexpr
bool
value
=
sum_type_access
<
T
>::
specialized
&&
!
sum_type_access
<
T
>::
immutable
;
};
}
// 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