Skip to content

Commit fcec9ab

Browse files
committed
Repair snippets in CI
1 parent 4257567 commit fcec9ab

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/real-time-cpp-snippets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: host-snippets-all
3131
run: |
3232
cd ${{ matrix.chapter }}
33-
./${{ matrix.chapter }}.sh ${{ matrix.compiler }} c++20
33+
./${{ matrix.chapter }}.sh ${{ matrix.compiler }} c++23
3434
working-directory: ./code_snippets
3535
host-snippets-chapter06:
3636
runs-on: ubuntu-latest

code_snippets/chapter05/chapter05_06-003_template_concepts.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
#include <concepts>
9+
#include <iostream>
910
#include <string>
1011
#include <type_traits>
1112

@@ -30,9 +31,13 @@ auto do_something() -> void
3031
// 3U
3132
const unsigned c { add(1U, 2U) };
3233

34+
std::cout << c << std::endl;
35+
3336
// abcxyz
3437
const std::string str
3538
{ add(std::string("abc"), std::string("xyz")) };
39+
40+
std::cout << str << std::endl;
3641
}
3742

3843
auto main() -> int

0 commit comments

Comments
 (0)