asio: Disable concepts support

Fix example for compatibility with C++20

* Original commit: espressif/esp-idf@9dba0476a0
* Original commit: espressif/esp-idf@157247f98f
This commit is contained in:
gabsuren
2022-06-22 17:55:10 +04:00
parent 2cf7518114
commit ac7bf465d2
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@
# define ASIO_SEPARATE_COMPILATION # define ASIO_SEPARATE_COMPILATION
# define ASIO_STANDALONE # define ASIO_STANDALONE
# define ASIO_HAS_PTHREADS # define ASIO_HAS_PTHREADS
# define ASIO_DISABLE_CONCEPTS
# ifdef CONFIG_ASIO_USE_ESP_OPENSSL # ifdef CONFIG_ASIO_USE_ESP_OPENSSL
# define ASIO_USE_ESP_OPENSSL # define ASIO_USE_ESP_OPENSSL

View File

@ -18,8 +18,8 @@
class chat_message class chat_message
{ {
public: public:
enum { header_length = 4 }; static constexpr std::size_t header_length = 4;
enum { max_body_length = 512 }; static constexpr std::size_t max_body_length = 512;
chat_message() chat_message()
: body_length_(0) : body_length_(0)