diff --git a/include/llama-cpp.h b/include/llama-cpp.h index efc5074df..fee15ef9c 100644 --- a/include/llama-cpp.h +++ b/include/llama-cpp.h @@ -34,6 +34,7 @@ typedef std::unique_ptr llama_sampler_ptr; typedef std::unique_ptr llama_adapter_lora_ptr; struct llama_batch_ext_ptr : std::unique_ptr { + llama_batch_ext_ptr() : std::unique_ptr() {} llama_batch_ext_ptr(llama_batch_ext * batch) : std::unique_ptr(batch) {} // convenience function to create a batch from text tokens, without worrying about manually freeing it