Skip to content
Snippets Groups Projects
Commit 56dd5c54 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Make toString pure virtual and remove data ctor binding.

parent 1ce2476b
No related branches found
No related tags found
No related merge requests found
Pipeline #41316 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