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
9b07504e
Commit
9b07504e
authored
Jan 01, 2016
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #166
parent
3905406f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
README.md
README.md
+1
-0
src/json.hpp
src/json.hpp
+2
-2
src/json.hpp.re2c
src/json.hpp.re2c
+2
-2
No files found.
README.md
View file @
9b07504e
...
@@ -386,6 +386,7 @@ I deeply appreciate the help of the following people.
...
@@ -386,6 +386,7 @@ I deeply appreciate the help of the following people.
-
[
ZahlGraf
](
https://github.com/ZahlGraf
)
added a workaround that allows compilation using Android NDK.
-
[
ZahlGraf
](
https://github.com/ZahlGraf
)
added a workaround that allows compilation using Android NDK.
-
[
whackashoe
](
https://github.com/whackashoe
)
replaced a function that was marked as unsafe by Visual Studio.
-
[
whackashoe
](
https://github.com/whackashoe
)
replaced a function that was marked as unsafe by Visual Studio.
-
[
406345
](
https://github.com/406345
)
fixed two small warnings.
-
[
406345
](
https://github.com/406345
)
fixed two small warnings.
-
[
Glen Fernandes
](
https://github.com/glenfe
)
noted a potential portability problem in the
`has_mapped_type`
function.
Thanks a lot for helping out!
Thanks a lot for helping out!
...
...
src/json.hpp
View file @
9b07504e
...
@@ -94,9 +94,9 @@ struct has_mapped_type
...
@@ -94,9 +94,9 @@ struct has_mapped_type
{
{
private:
private:
template
<
typename
C
>
static
char
test
(
typename
C
::
mapped_type
*
);
template
<
typename
C
>
static
char
test
(
typename
C
::
mapped_type
*
);
template
<
typename
C
>
static
int
test
(...)
;
template
<
typename
C
>
static
char
(
&
test
(...))[
2
]
;
public:
public:
enum
{
value
=
sizeof
(
test
<
T
>
(
0
))
==
sizeof
(
char
)
}
;
static
constexpr
bool
value
=
sizeof
(
test
<
T
>
(
0
))
==
1
;
};
};
/// "equality" comparison for floating point numbers
/// "equality" comparison for floating point numbers
...
...
src/json.hpp.re2c
View file @
9b07504e
...
@@ -94,9 +94,9 @@ struct has_mapped_type
...
@@ -94,9 +94,9 @@ struct has_mapped_type
{
{
private:
private:
template<typename C> static char test(typename C::mapped_type*);
template<typename C> static char test(typename C::mapped_type*);
template<typename C> static
int test(...)
;
template<typename C> static
char (&test(...))[2]
;
public:
public:
enum { value = sizeof(test<T>(0)) == sizeof(char) }
;
static constexpr bool value = sizeof(test<T>(0)) == 1
;
};
};
/// "equality" comparison for floating point numbers
/// "equality" comparison for floating point numbers
...
...
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