Add more standards

This commit is contained in:
Victor Zverovich 2020-11-14 11:52:35 -08:00
parent f81c14aa1e
commit f8640d4050
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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<custom_char> : std::true_type {};
FMT_END_NAMESPACE