Skip to content

Commit 3c680a8

Browse files
committed
Update ex14_23.cpp
1 parent fe45a45 commit 3c680a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ch14/ex14_23.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ bool operator>=(const StrVec &lhs, const StrVec &rhs)
147147
StrVec& StrVec::operator=(std::initializer_list<std::string> il)
148148
{
149149
auto data = alloc_n_copy(il.begin(), il.end());
150-
free();
151-
elements = data.first;
152-
first_free = cap = data.second;
150+
free();
151+
elements = data.first;
152+
first_free = cap = data.second;
153153
return *this;
154154
}

0 commit comments

Comments
 (0)