Commit 244313a3 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix build with MSVC

Add missing ResultIterator::operator=() otherwise build fails as the
default one is instantiated by MSVC, which leads to reference to
undefined class.
parent e053e69d
...@@ -48,6 +48,12 @@ ResultIterator::~ResultIterator() ...@@ -48,6 +48,12 @@ ResultIterator::~ResultIterator()
{ {
} }
ResultIterator &ResultIterator::operator=(const ResultIterator &other)
{
d = other.d;
return *this;
}
bool ResultIterator::next() bool ResultIterator::next()
{ {
if (d->store) { if (d->store) {
......
...@@ -62,6 +62,8 @@ public: ...@@ -62,6 +62,8 @@ public:
ResultIterator(const ResultIterator &rhs); ResultIterator(const ResultIterator &rhs);
~ResultIterator(); ~ResultIterator();
ResultIterator &operator=(const ResultIterator &other);
// internal // internal
ResultIterator(int id, SearchStore *store); ResultIterator(int id, SearchStore *store);
......
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