mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04: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:
parent
9ff37d122a
commit
157247f98f
@ -18,8 +18,8 @@
|
||||
class chat_message
|
||||
{
|
||||
public:
|
||||
enum { header_length = 4 };
|
||||
enum { max_body_length = 512 };
|
||||
static constexpr std::size_t header_length = 4;
|
||||
static constexpr std::size_t max_body_length = 512;
|
||||
|
||||
chat_message()
|
||||
: body_length_(0)
|
||||
|
Loading…
Reference in New Issue
Block a user