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
e0c02c14
Unverified
Commit
e0c02c14
authored
Aug 14, 2017
by
Théo DELRIEU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add detail/conversions/from_json.hpp
parent
7056b375
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
331 additions
and
301 deletions
+331
-301
Makefile
Makefile
+3
-1
src/detail/conversions/from_json.hpp
src/detail/conversions/from_json.hpp
+316
-0
src/detail/meta.hpp
src/detail/meta.hpp
+10
-0
src/json.hpp
src/json.hpp
+2
-300
No files found.
Makefile
View file @
e0c02c14
...
@@ -7,7 +7,9 @@ SRCS = ${SRCDIR}/json.hpp \
...
@@ -7,7 +7,9 @@ SRCS = ${SRCDIR}/json.hpp \
${SRCDIR}
/detail/macro_unscope.hpp
\
${SRCDIR}
/detail/macro_unscope.hpp
\
${SRCDIR}
/detail/meta.hpp
\
${SRCDIR}
/detail/meta.hpp
\
${SRCDIR}
/detail/exceptions.hpp
\
${SRCDIR}
/detail/exceptions.hpp
\
${SRCDIR}
/detail/value_t.hpp
${SRCDIR}
/detail/value_t.hpp
\
${SRCDIR}
/detail/conversions/from_json.hpp
...
...
src/detail/conversions/from_json.hpp
0 → 100644
View file @
e0c02c14
This diff is collapsed.
Click to expand it.
src/detail/meta.hpp
View file @
e0c02c14
...
@@ -220,6 +220,16 @@ struct has_to_json
...
@@ -220,6 +220,16 @@ struct has_to_json
static
constexpr
bool
value
=
std
::
is_integral
<
decltype
(
detect
(
static
constexpr
bool
value
=
std
::
is_integral
<
decltype
(
detect
(
std
::
declval
<
typename
BasicJsonType
::
template
json_serializer
<
T
,
void
>
>
()))
>::
value
;
std
::
declval
<
typename
BasicJsonType
::
template
json_serializer
<
T
,
void
>
>
()))
>::
value
;
};
};
// taken from ranges-v3
template
<
typename
T
>
struct
static_const
{
static
constexpr
T
value
{};
};
template
<
typename
T
>
constexpr
T
static_const
<
T
>::
value
;
}
}
}
}
...
...
src/json.hpp
View file @
e0c02c14
This diff is collapsed.
Click to expand it.
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