Skip to content

Commit

Permalink
Fix compilation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman authored and ReenigneArcher committed Jul 19, 2024
1 parent 3aafae8 commit 99b2c8d
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(0) {}

Check warning on line 617 in src/platform/common.h

View check run for this annotation

Codecov / codecov/patch

src/platform/common.h#L614-L617

Added lines #L614 - L617 were not covered by tests
};

struct batched_send_info_t {
Expand Down

0 comments on commit 99b2c8d

Please sign in to comment.