mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
asio: fix example for compatibility with C++20
Fix deprecated-enum-enum-conversion warning when compiling the example with C++20
This commit is contained in:
@ -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