Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
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
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
Libraries
json
Commits
889b269a
Commit
889b269a
authored
Jan 20, 2017
by
Théo DELRIEU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename template argument: BasicJson -> Json
parent
a6b02828
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
406 additions
and
884 deletions
+406
-884
src/json.hpp
src/json.hpp
+394
-872
src/json.hpp.re2c
src/json.hpp.re2c
+12
-12
No files found.
src/json.hpp
View file @
889b269a
This diff is collapsed.
Click to expand it.
src/json.hpp.re2c
View file @
889b269a
...
...
@@ -377,27 +377,27 @@ struct is_compatible_object_type_impl<true, RealType, CompatibleObjectType>
typename CompatibleObjectType::mapped_type>::value;
};
template<class
Basic
Json, class CompatibleObjectType>
template<class Json, class CompatibleObjectType>
struct is_compatible_object_type
{
static auto constexpr value = is_compatible_object_type_impl <
conjunction<negation<std::is_same<void, CompatibleObjectType>>,
has_mapped_type<CompatibleObjectType>,
has_key_type<CompatibleObjectType>>::value,
typename
Basic
Json::object_t, CompatibleObjectType >::value;
typename Json::object_t, CompatibleObjectType >::value;
};
template <typename
Basic
Json, typename T>
template <typename Json, typename T>
struct is_basic_json_nested_type
{
static auto constexpr value = std::is_same<T, typename
Basic
Json::iterator>::value or
std::is_same<T, typename
Basic
Json::const_iterator>::value or
std::is_same<T, typename
Basic
Json::reverse_iterator>::value or
std::is_same<T, typename
Basic
Json::const_reverse_iterator>::value or
std::is_same<T, typename
Basic
Json::json_pointer>::value;
static auto constexpr value = std::is_same<T, typename Json::iterator>::value or
std::is_same<T, typename Json::const_iterator>::value or
std::is_same<T, typename Json::reverse_iterator>::value or
std::is_same<T, typename Json::const_reverse_iterator>::value or
std::is_same<T, typename Json::json_pointer>::value;
};
template <class
Basic
Json, class CompatibleArrayType>
template <class Json, class CompatibleArrayType>
struct is_compatible_array_type
{
// TODO concept Container?
...
...
@@ -405,10 +405,10 @@ struct is_compatible_array_type
static auto constexpr value =
conjunction<negation<std::is_same<void, CompatibleArrayType>>,
negation<is_compatible_object_type<
Basic
Json, CompatibleArrayType>>,
negation<std::is_constructible<typename
Basic
Json::string_t,
Json, CompatibleArrayType>>,
negation<std::is_constructible<typename Json::string_t,
CompatibleArrayType>>,
negation<is_basic_json_nested_type<
Basic
Json, CompatibleArrayType>>,
negation<is_basic_json_nested_type<Json, CompatibleArrayType>>,
has_value_type<CompatibleArrayType>,
has_iterator<CompatibleArrayType>>::value;
};
...
...
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