File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2222 - uses : actions/checkout@v2
2323 with :
2424 ref : refs/heads/master
25+ - name : install gcc 11
26+ if : startsWith(matrix.os, 'ubuntu')
27+ run : |
28+ sudo apt-get install -y gcc-11 g++-11
29+
2530 - name : Build
2631 run : |
2732 mkdir build
3035 cmake --build . --config Release
3136 ctest -V -C Release
3237 cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
33-
38+ env :
39+ CC : gcc-11
40+ CXX : g++-11
3441 - name : Upload
3542 uses : actions/upload-artifact@v2
3643 with :
Original file line number Diff line number Diff line change 1111// 前置声明
1212class Service ;
1313
14- #if defined(__GNUC__) && __GNUC__ < 10
15- #define ServiceClass typename
16- #else
1714template <class Derived >
1815concept ServiceClass = requires (Derived d)
1916{
2017 std::is_base_of<Service, Derived>::value;
2118 Derived::ServiceIndex;
2219};
23- #endif
2420
2521class LanguageClient : public std ::enable_shared_from_this<LanguageClient>
2622{
Original file line number Diff line number Diff line change 44#include < vector>
55#include < type_traits>
66#include < nlohmann/json.hpp>
7- #if defined(__GNUC__) && __GNUC__ < 10
8- #else
97#include < compare>
10- # endif
8+
119// 命名风格和vscode一样
1210
1311namespace vscode
You can’t perform that action at this time.
0 commit comments