Add support for g++-13,14

Summary:
related to T13767, #9

fix compilation error on g++-14
add g++-13 & g++-14 workflow to CI (requires ubuntu 24.04)

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D29794
This commit is contained in:
Korina Šimičević
2024-06-03 09:00:30 +02:00
parent 927c1c6e3a
commit d52090f438
7 changed files with 31 additions and 8 deletions

View File

@ -15,7 +15,7 @@ env:
jobs: jobs:
windows: windows:
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.build-type }}" name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }}"
defaults: defaults:
run: run:
shell: cmd shell: cmd
@ -114,7 +114,7 @@ jobs:
.\\test\\build\\${{ matrix.build-type }}\\mqtt-test.exe .\\test\\build\\${{ matrix.build-type }}\\mqtt-test.exe
posix: posix:
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.build-type }}" name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.container }}"
defaults: defaults:
run: run:
@ -150,6 +150,26 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
container: ubuntu:22.04 container: ubuntu:22.04
build-type: 'Release' build-type: 'Release'
cxxstd: 17
cxxflags: ''
ldflags: ''
- toolset: g++-13
compiler: g++-13
install: g++-13
os: ubuntu-24.04
container: ubuntu:24.04
build-type: 'Release'
cxxstd: 17
cxxflags: ''
ldflags: ''
- toolset: g++-14
compiler: g++-14
install: g++-14
os: ubuntu-24.04
container: ubuntu:24.04
build-type: 'Release'
cxxstd: 20 cxxstd: 20
cxxflags: '' cxxflags: ''
ldflags: '' ldflags: ''

View File

@ -15,7 +15,7 @@ env:
jobs: jobs:
posix: posix:
name: "coverage ${{ matrix.compiler }} -std=c++${{ matrix.cxxstd }}" name: "coverage ${{ matrix.compiler }} -std=c++${{ matrix.cxxstd }} ${{ matrix.container }}"
defaults: defaults:
run: run:
shell: bash shell: bash

View File

@ -128,8 +128,8 @@ Async.MQTT5 is a header-only library. To use Async.MQTT5 it requires the followi
- **OpenSSL**. Only if you require an SSL connection by using [boost::asio::ssl::stream](https://www.boost.org/doc/libs/1_82_0/doc/html/boost_asio/reference/ssl__stream.html). - **OpenSSL**. Only if you require an SSL connection by using [boost::asio::ssl::stream](https://www.boost.org/doc/libs/1_82_0/doc/html/boost_asio/reference/ssl__stream.html).
Async.MQTT5 has been tested with the following compilers: Async.MQTT5 has been tested with the following compilers:
- clang 12.0, 13.0, 14.0, 15.0 (Linux) - clang 12.0 - 15.0 (Linux)
- GCC 9, 10, 11, 12 (Linux) - GCC 9 - 14 (Linux)
- MSVC 14.37 - Visual Studio 2022 (Windows) - MSVC 14.37 - Visual Studio 2022 (Windows)
Contributing Contributing

View File

@ -127,8 +127,8 @@ To use __Self__ it requires the following:
__Self__ has been tested with the following compilers: __Self__ has been tested with the following compilers:
* clang 12.0, 13.0, 14.0, 15.0 (Linux) * clang 12.0 - 15.0 (Linux)
* GCC 9, 10, 11, 12 (Linux) * GCC 9 - 14 (Linux)
* MSVC 14.37 - Visual Studio 2022 (Windows) * MSVC 14.37 - Visual Studio 2022 (Windows)
[heading Acknowledgements] [heading Acknowledgements]

View File

@ -8,6 +8,7 @@
#ifndef ASYNC_MQTT5_CONTROL_PACKET_HPP #ifndef ASYNC_MQTT5_CONTROL_PACKET_HPP
#define ASYNC_MQTT5_CONTROL_PACKET_HPP #define ASYNC_MQTT5_CONTROL_PACKET_HPP
#include <algorithm>
#include <vector> #include <vector>
#include <boost/smart_ptr/allocate_unique.hpp> #include <boost/smart_ptr/allocate_unique.hpp>

View File

@ -11,6 +11,7 @@
#include <boost/asio/detached.hpp> #include <boost/asio/detached.hpp>
#include <async_mqtt5/error.hpp> #include <async_mqtt5/error.hpp>
#include <async_mqtt5/reason_codes.hpp>
#include <async_mqtt5/detail/control_packet.hpp> #include <async_mqtt5/detail/control_packet.hpp>
#include <async_mqtt5/detail/any_authenticator.hpp> #include <async_mqtt5/detail/any_authenticator.hpp>

View File

@ -8,8 +8,9 @@
#ifndef ASYNC_MQTT5_TEST_PACKET_UTIL_HPP #ifndef ASYNC_MQTT5_TEST_PACKET_UTIL_HPP
#define ASYNC_MQTT5_TEST_PACKET_UTIL_HPP #define ASYNC_MQTT5_TEST_PACKET_UTIL_HPP
#include <string>
#include <bitset> #include <bitset>
#include <sstream>
#include <string>
#include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/join.hpp>