Skip to content

Commit

Permalink
Fix compilation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jul 18, 2024
1 parent 026e9c4 commit 18e0003
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,12 @@ namespace platf {
struct buffer_descriptor_t {
const char *buffer;
size_t size;

// Constructors required for emplace_back() prior to C++20
buffer_descriptor_t(const char *buffer, size_t size):
buffer(buffer), size(size) {}
buffer_descriptor_t():
buffer(nullptr), size() {}
};

struct batched_send_info_t {
Expand Down

0 comments on commit 18e0003

Please sign in to comment.