summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/dynlib.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/kernel/dynlib.hpp')
-rw-r--r--sca-cpp/trunk/kernel/dynlib.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/sca-cpp/trunk/kernel/dynlib.hpp b/sca-cpp/trunk/kernel/dynlib.hpp
index 484de3d666..69359b4dae 100644
--- a/sca-cpp/trunk/kernel/dynlib.hpp
+++ b/sca-cpp/trunk/kernel/dynlib.hpp
@@ -59,6 +59,15 @@ public:
lib(const lib& l) : name(l.name), h(l.h), owner(false) {
}
+ const lib& operator=(const lib& l) {
+ if(this == &l)
+ return *this;
+ name = l.name;
+ h = l.h;
+ owner = false;
+ return *this;
+ }
+
~lib() {
if (!owner)
return;
@@ -70,7 +79,7 @@ public:
private:
template<typename S> friend const failable<lambda<S> > dynlambda(const string& name, const lib& l);
- const string name;
+ string name;
failable<void*> h;
bool owner;
};