mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
Add more standards
This commit is contained in:
parent
f81c14aa1e
commit
f8640d4050
15
.github/workflows/linux.yml
vendored
15
.github/workflows/linux.yml
vendored
@ -9,12 +9,20 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
cxx: [g++-4.8, g++-8, g++-10, clang++-9]
|
cxx: [g++-4.8, g++-8, g++-10, clang++-9]
|
||||||
build_type: [Debug, Release]
|
build_type: [Debug, Release]
|
||||||
|
std: [11]
|
||||||
include:
|
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
|
- cxx: clang++-9
|
||||||
build_type: Debug
|
build_type: Debug
|
||||||
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
|
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
|
||||||
- cxx: g++-4.8
|
std: 17
|
||||||
install: sudo apt install g++-4.8
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -30,7 +38,8 @@ jobs:
|
|||||||
CXX: ${{matrix.cxx}}
|
CXX: ${{matrix.cxx}}
|
||||||
run: |
|
run: |
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.fuzz}} \
|
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
|
- name: Build
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
@ -2479,6 +2479,8 @@ struct custom_char {
|
|||||||
operator int() const { return value; }
|
operator int() const { return value; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int to_ascii(custom_char c) { return c; }
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
template <> struct is_char<custom_char> : std::true_type {};
|
template <> struct is_char<custom_char> : std::true_type {};
|
||||||
FMT_END_NAMESPACE
|
FMT_END_NAMESPACE
|
||||||
|
Loading…
Reference in New Issue
Block a user