Skip to content

Commit 4ef4344

Browse files
committed
Add move constructor from base to the Wrapper.
This is needed as `zim::Search` cannot be copied.
1 parent 2614310 commit 4ef4344

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libzim/libwrapper.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class Wrapper {
7878
Wrapper(const Base& base)
7979
: mp_base(new Base(base))
8080
{}
81+
Wrapper(Base&& base)
82+
: mp_base(new Base(std::move(base)))
83+
{}
8184
Wrapper(Wrapper&& other) = default;
8285
Wrapper& operator=(Wrapper&& other) = default;
8386
protected:

0 commit comments

Comments
 (0)