Commit ade57259 authored by Marius Wachtler's avatar Marius Wachtler

Add a universal reference constructor to BoxedSet

my old one was missing a std::move and did not accept lvalues.
parent d49489ad
......@@ -35,7 +35,10 @@ public:
Set s;
BoxedSet(BoxedClass* cls) __attribute__((visibility("default"))) : Box(cls) {}
BoxedSet(Set&& s, BoxedClass* cls) __attribute__((visibility("default"))) : Box(cls), s(s) {}
template <typename T>
__attribute__((visibility("default"))) BoxedSet(T&& s, BoxedClass* cls)
: Box(cls), s(std::forward<T>(s)) {}
};
}
......
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