aboutsummaryrefslogtreecommitdiffstats
path: root/misc/optvec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'misc/optvec.hpp')
-rw-r--r--misc/optvec.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/optvec.hpp b/misc/optvec.hpp
index 5cb78c1..d23934c 100644
--- a/misc/optvec.hpp
+++ b/misc/optvec.hpp
@@ -17,6 +17,13 @@ namespace opt_utilities
optvec(const std::vector<T>& rhs)
:std::vector<T>(rhs)
{}
+
+ optvec& operator=(const optvec& rhs)
+ {
+ //dynamic_cast<std::vector<T>&>(*this).operator=(rhs);
+ std::vector<T>::operator=(rhs);
+ return *this;
+ }
public:
operator std::vector<T>& ()
{