mirror of
https://github.com/boostorg/container.git
synced 2025-07-31 04:57:16 +02:00
Sync from upstream.
This commit is contained in:
@ -3545,21 +3545,6 @@ getline(std::basic_istream<CharT, Traits>& is, basic_string<CharT,Traits,Allocat
|
|||||||
return getline(is, s, '\n');
|
return getline(is, s, '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Ch, class Allocator>
|
|
||||||
inline std::size_t hash_value(basic_string<Ch, std::char_traits<Ch>, Allocator> const& v)
|
|
||||||
{
|
|
||||||
std::size_t seed = 0;
|
|
||||||
const Ch *first = v.data();
|
|
||||||
|
|
||||||
for(std::size_t i = 0, i_max = v.size(); i != i_max; ++i)
|
|
||||||
{
|
|
||||||
boost::intrusive::detail::hash_combine_size_t(seed, static_cast<std::size_t>(*first));
|
|
||||||
++first;
|
|
||||||
}
|
|
||||||
|
|
||||||
return seed;
|
|
||||||
}
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
//GCC 12 has a regression for array-bounds warnings
|
//GCC 12 has a regression for array-bounds warnings
|
||||||
|
@ -524,12 +524,6 @@ struct alloc_propagate_base<boost_container_string>
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
|
||||||
boost::container::string a = "abcdefghijklmnopqrstuvwxyz";
|
|
||||||
boost::container::hash_value(a);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(string_test<char>()){
|
if(string_test<char>()){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user