diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8eda16df..49a6ae0b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,12 +9,20 @@ jobs: matrix: cxx: [g++-4.8, g++-8, g++-10, clang++-9] build_type: [Debug, Release] + std: [11] include: + - cxx: g++-4.8 + install: sudo apt install g++-4.8 + - cxx: g++-8 + std: 14 + - cxx: g++-10 + std: 17 + - cxx: clang++-9 + std: 11 - cxx: clang++-9 build_type: Debug fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON - - cxx: g++-4.8 - install: sudo apt install g++-4.8 + std: 17 steps: - uses: actions/checkout@v2 @@ -30,7 +38,8 @@ jobs: CXX: ${{matrix.cxx}} run: | cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.fuzz}} \ - -DFMT_DOC=OFF -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE + -DCMAKE_CXX_STANDARD=${{matrix.std}} -DFMT_DOC=OFF \ + -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE - name: Build working-directory: ${{runner.workspace}}/build diff --git a/test/format-test.cc b/test/format-test.cc index 235058a3..d541e47a 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2479,6 +2479,8 @@ struct custom_char { operator int() const { return value; } }; +int to_ascii(custom_char c) { return c; } + FMT_BEGIN_NAMESPACE template <> struct is_char : std::true_type {}; FMT_END_NAMESPACE