Dhairya Malhotra пре 7 година
родитељ
комит
f751e036a3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      include/sctl/vector.txx

+ 1 - 1
include/sctl/vector.txx

@@ -36,7 +36,7 @@ template <class ValueType> Vector<ValueType>::Vector(const Vector<ValueType>& V)
 }
 
 template <class ValueType> Vector<ValueType>::Vector(const std::vector<ValueType>& V) {
-  Init(V.Dim(), Ptr2ConstItr<ValueType>(&V[0], V.size()));
+  Init(V.size(), Ptr2Itr<ValueType>((ValueType*)(V.size()?&V[0]:nullptr), V.size()));
 }
 
 template <class ValueType> Vector<ValueType>::~Vector() {