From 9dba0476a01cd80d76e21706ad350009606b877e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 3 Jun 2022 16:21:53 +0200 Subject: [PATCH] asio: disable concepts support The bundled version of asio uses legacy concepts syntax (https://en.cppreference.com/w/cpp/experimental/constraints) which is not accepted by GCC with -std=c++20. Disable the concepts support until asio is upgraded to a version which supports the new syntax. --- components/asio/port/include/esp_asio_config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/asio/port/include/esp_asio_config.h b/components/asio/port/include/esp_asio_config.h index f8e34d617a..cf42183a3e 100644 --- a/components/asio/port/include/esp_asio_config.h +++ b/components/asio/port/include/esp_asio_config.h @@ -30,6 +30,7 @@ # define ASIO_SEPARATE_COMPILATION # define ASIO_STANDALONE # define ASIO_HAS_PTHREADS +# define ASIO_DISABLE_CONCEPTS # ifdef CONFIG_ASIO_USE_ESP_OPENSSL # define ASIO_USE_ESP_OPENSSL