Skip to content
Snippets Groups Projects
Commit 0aeba15c authored by Cyril Moineau's avatar Cyril Moineau Committed by Maxence Naud
Browse files

Make toString pure virtual and remove data ctor binding.

parent 89a6dced
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!98Conv no bias
Pipeline #41734 passed
......@@ -52,7 +52,7 @@ public:
return mType;
}
virtual ~Data() = default;
virtual std::string toString() const;
virtual std::string toString() const = 0;
private:
const std::string mType;
......
......@@ -29,8 +29,7 @@ void init_Data(py::module& m){
.value("UInt64", DataType::UInt64)
;
py::class_<Data, std::shared_ptr<Data>>(m,"Data")
.def(py::init<const std::string&>());
py::class_<Data, std::shared_ptr<Data>>(m,"Data");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment