We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3302036 commit 86e719dCopy full SHA for 86e719d
datetime_utils.h
@@ -64,8 +64,12 @@ template<class Time_t>
64
class DateTimeList
65
{
66
public:
67
+
68
+ DateTimeList() = default;
69
70
DateTimeList(const Time_t* t, size_t nt)
71
72
+ matplotlibcpp::detail::_interpreter::get();
73
tlist = (PyListObject*)toPyDateTimeList(t, nt);
74
}
75
@@ -74,6 +78,12 @@ class DateTimeList
78
if(tlist) Py_DECREF((PyObject*)tlist);
79
76
80
81
+ DateTimeList& operator=(const DateTimeList& rhs) {
82
+ tlist=rhs.tlist;
83
+ Py_INCREF(tlist);
84
+ return *this;
85
+ }
86
77
87
PyListObject* get() const { return tlist; }
88
size_t size() const { return tlist ? PyList_Size((PyObject*)tlist) : 0; }
89
private:
0 commit comments