mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-19 13:32:21 +02:00
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:
@ -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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user