aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-11-13 16:01:40 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-11-13 16:01:40 +0000
commitaa2167fb6ab9ea40278757964d2f00d4b24b8362 (patch)
treebe4039fdbd69434675fc1f16e5bc9527972ccfc0 /misc
parent5cf6e0ec3fb49f0cd360e08f1e7d08dee1590f32 (diff)
downloadopt-utilities-aa2167fb6ab9ea40278757964d2f00d4b24b8362.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@95 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'misc')
-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>& ()
{