CI/GitHub: Switch to GCC 8 (#25610)

* CI/GitHub: Switch to GCC 8

Build on GitHub Actions using GCC 8 as it's the oldest supported GCC

* Core/Misc: Attempt to fix GCC 8 build
This commit is contained in:
Giacomo Pozzoni
2020-10-25 10:31:29 +01:00
committed by GitHub
parent 22a1797731
commit d7459ccced
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ jobs:
- name: Dependencies
run: |
sudo apt-get update && sudo apt-get install -yq libboost-all-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8
- name: Setup
run: |
mkdir bin

View File

@@ -108,7 +108,7 @@ namespace Trinity::ChatCommands
private:
static constexpr std::array<char, sizeof...(chars)> _storage = { chars... };
static_assert(!_storage.empty() && (_storage.back() == '\0'), "ExactSequence parameters must be null terminated! Use the EXACT_SEQUENCE macro to make this easier!");
static constexpr std::string_view _string = { _storage.data() };
static constexpr std::string_view _string = { _storage.data(), std::string_view::traits_type::length(_storage.data()) };
};
#define EXACT_SEQUENCE(str) Trinity::ChatCommands::ExactSequence<CHATCOMMANDS_IMPL_SPLIT_LITERAL(str)>