Commit add992ec authored by Matthieu Dorier's avatar Matthieu Dorier

corrected default constructors

parent 5957aee7
......@@ -49,7 +49,7 @@ class AsyncEngine {
public:
AsyncEngine() = default;
AsyncEngine();
/**
* @brief Constructor.
......
......@@ -55,7 +55,7 @@ class WriteBatch {
/**
* @brief Default constructor.
*/
WriteBatch() = default;
WriteBatch();
/**
* @brief Constructor.
......
......@@ -4,6 +4,8 @@
namespace hepnos {
AsyncEngine::AsyncEngine() {}
AsyncEngine::AsyncEngine(DataStore& ds, size_t num_threads)
: m_impl(std::make_shared<AsyncEngineImpl>(ds.m_impl, num_threads)) {}
......
......@@ -9,6 +9,8 @@
namespace hepnos {
WriteBatch::WriteBatch() {}
WriteBatch::WriteBatch(DataStore& datastore, unsigned max_batch_size)
: m_impl(std::make_unique<WriteBatchImpl>(datastore.m_impl, max_batch_size)) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment