mirror of
https://github.com/boostorg/unordered.git
synced 2025-08-02 12:54:29 +02:00
Add missing 'use namespace std'. Which I should have done when I was told about
them before. Sorry. [SVN r42575]
This commit is contained in:
@@ -1225,6 +1225,8 @@ namespace boost {
|
|||||||
// no throw
|
// no throw
|
||||||
size_type max_size() const
|
size_type max_size() const
|
||||||
{
|
{
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
// size < mlf_ * count
|
// size < mlf_ * count
|
||||||
return float_to_size_t(ceil(
|
return float_to_size_t(ceil(
|
||||||
max_bucket_count() * mlf_)) - 1;
|
max_bucket_count() * mlf_)) - 1;
|
||||||
@@ -1303,6 +1305,8 @@ namespace boost {
|
|||||||
// factor. This is to try to avoid excessive rehashes.
|
// factor. This is to try to avoid excessive rehashes.
|
||||||
bool reserve_extra(size_type n)
|
bool reserve_extra(size_type n)
|
||||||
{
|
{
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
bool need_to_reserve = n >= max_load_;
|
bool need_to_reserve = n >= max_load_;
|
||||||
// throws - basic:
|
// throws - basic:
|
||||||
if (need_to_reserve) {
|
if (need_to_reserve) {
|
||||||
|
Reference in New Issue
Block a user