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
e03beeb8
Commit
e03beeb8
authored
Aug 22, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
381a2bec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
libcaf_core/caf/detail/parse.hpp
libcaf_core/caf/detail/parse.hpp
+1
-1
libcaf_core/caf/detail/parser/state.hpp
libcaf_core/caf/detail/parser/state.hpp
+1
-1
libcaf_core/caf/detail/type_traits.hpp
libcaf_core/caf/detail/type_traits.hpp
+3
-3
No files found.
libcaf_core/caf/detail/parse.hpp
View file @
e03beeb8
...
...
@@ -104,7 +104,7 @@ void parse(parse_state& ps, std::pair<First, Second>& kvp) {
template
<
class
T
>
enable_if_tt
<
is_iterable
<
T
>>
parse
(
parse_state
&
ps
,
T
&
xs
)
{
using
value_type
=
deconst_kvp_
pair_
t
<
typename
T
::
value_type
>
;
using
value_type
=
deconst_kvp_t
<
typename
T
::
value_type
>
;
static
constexpr
auto
is_map_type
=
is_pair
<
value_type
>::
value
;
static
constexpr
auto
opening_char
=
is_map_type
?
'{'
:
'['
;
static
constexpr
auto
closing_char
=
is_map_type
?
'}'
:
']'
;
...
...
libcaf_core/caf/detail/parser/state.hpp
View file @
e03beeb8
...
...
@@ -71,7 +71,7 @@ struct state {
/// Checks whether `i == e`.
bool
at_end
()
const
noexcept
{
return
current
()
==
'\0'
;
return
i
==
e
;
}
/// Skips any whitespaces characters in the input.
...
...
libcaf_core/caf/detail/type_traits.hpp
View file @
e03beeb8
...
...
@@ -738,17 +738,17 @@ struct always_false : std::false_type {};
/// Utility trait for removing const inside a `map<K, V>::value_type`.
template
<
class
T
>
struct
deconst_kvp
_pair
{
struct
deconst_kvp
{
using
type
=
T
;
};
template
<
class
K
,
class
V
>
struct
deconst_kvp
_pair
<
std
::
pair
<
const
K
,
V
>>
{
struct
deconst_kvp
<
std
::
pair
<
const
K
,
V
>>
{
using
type
=
std
::
pair
<
K
,
V
>
;
};
template
<
class
T
>
using
deconst_kvp_
pair_t
=
typename
deconst_kvp_pair
<
T
>::
type
;
using
deconst_kvp_
t
=
typename
deconst_kvp
<
T
>::
type
;
/// Utility trait for checking whether T is a `std::pair`.
template
<
class
T
>
...
...
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