diff -Naur .build/boost_1_54_0/boost/container/string.hpp .build/boost_1_54_0_patched/boost/container/string.hpp
old
|
new
|
|
1244 | 1244 | basic_string& assign(const CharT* s) |
1245 | 1245 | { return this->assign(s, s + Traits::length(s)); } |
1246 | 1246 | |
| 1247 | //! <b>Effects</b>: Equivalent to assign(basic_string(first, last)). |
| 1248 | //! |
| 1249 | //! <b>Returns</b>: *this |
| 1250 | basic_string& assign(const CharT* first, const CharT* last) |
| 1251 | { |
| 1252 | size_type n = std::distance(first, last); |
| 1253 | this->reserve(n); |
| 1254 | CharT* ptr = container_detail::to_raw_pointer(this->priv_addr()); |
| 1255 | Traits::copy(ptr, first, n); |
| 1256 | this->priv_construct_null(ptr + n); |
| 1257 | return *this; |
| 1258 | } |
| 1259 | |
1247 | 1260 | //! <b>Effects</b>: Equivalent to assign(basic_string(n, c)). |
1248 | 1261 | //! |
1249 | 1262 | //! <b>Returns</b>: *this |