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
e4fc5984
Unverified
Commit
e4fc5984
authored
Dec 29, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚗
add C++20 build
parent
77be4f6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
.github/workflows/ubuntu.yml
.github/workflows/ubuntu.yml
+0
-20
test/src/unit-regression2.cpp
test/src/unit-regression2.cpp
+1
-1
No files found.
.github/workflows/ubuntu.yml
View file @
e4fc5984
...
...
@@ -43,26 +43,6 @@ jobs:
-
name
:
test
run
:
cd build ; ctest -j 10 --output-on-failure
gcc_build_cxx20
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
install_gcc
run
:
|
sudo apt update
sudo apt install gcc-10 g++-10
shell
:
bash
-
name
:
cmake
run
:
cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON
env
:
CC
:
gcc-10
CXX
:
g++-10
-
name
:
build
run
:
cmake --build build --parallel
10
-
name
:
test
run
:
cd build ; ctest -j 10 --output-on-failure
clang_build_cxx20
:
runs-on
:
ubuntu-latest
...
...
test/src/unit-regression2.cpp
View file @
e4fc5984
...
...
@@ -495,7 +495,7 @@ TEST_CASE("regression tests 2")
const
char
DATA
[]
=
R"("Hello, world!")"
;
const
auto
s
=
std
::
as_bytes
(
std
::
span
(
DATA
));
json
j
=
json
::
parse
(
s
);
CHECK
(
j
.
dump
==
"Hello, world!"
);
CHECK
(
j
.
dump
()
==
"Hello, world!"
);
}
#endif
}
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