Dhairya Malhotra %!s(int64=7) %!d(string=hai) anos
pai
achega
f751e036a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {