Changed first argument of copy_vector() to 'const', to avoid mistakes.
This commit is contained in:
parent
42163d5343
commit
d18af13418
@ -94,7 +94,7 @@ namespace vmime
|
||||
// Copy one vector to another, with type conversion
|
||||
|
||||
template <class T1, class T2>
|
||||
void copy_vector(T1& v1, T2& v2)
|
||||
void copy_vector(const T1& v1, T2& v2)
|
||||
{
|
||||
const typename T1::size_type count = v1.size();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user