From a16a10938b06cddb333ffc39aec0d7ace20212a0 Mon Sep 17 00:00:00 2001 From: Patrick Mullen Date: Mon, 16 Mar 2026 20:12:51 -0400 Subject: [PATCH] Initialize line_sender_buffer using sender.new_buffer() Current documentation assumes the existence of a default constructor, which does not exist. Not a vital change, but took me longer than I care to admit to figure out that's why my project wasn't compiling. --- documentation/ingestion/clients/c-and-cpp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/ingestion/clients/c-and-cpp.md b/documentation/ingestion/clients/c-and-cpp.md index c0348db16..359c576f2 100644 --- a/documentation/ingestion/clients/c-and-cpp.md +++ b/documentation/ingestion/clients/c-and-cpp.md @@ -97,7 +97,7 @@ int main() auto sender = questdb::ingress::line_sender::from_conf( "http::addr=localhost:9000;"); - questdb::ingress::line_sender_buffer buffer; + questdb::ingress::line_sender_buffer buffer = sender.new_buffer(); buffer .table("trades") .symbol("symbol","ETH-USD") @@ -143,7 +143,7 @@ int main() auto nanos = std::chrono::duration_cast(duration).count(); // Add rows to the buffer of the sender with the same timestamp - questdb::ingress::line_sender_buffer buffer; + questdb::ingress::line_sender_buffer buffer = sender.new_buffer(); buffer .table("trades") .symbol("symbol", "ETH-USD")