forked from boostorg/unordered
Improved support for Visual C++.
[SVN r2985]
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
#endif
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
||||
#define BOOST_HASH_MSVC_RESET_PTR(x) unordered_detail::reset(node_pointer_)
|
||||
#define BOOST_HASH_MSVC_RESET_PTR(x) unordered_detail::reset(x)
|
||||
#else
|
||||
#define BOOST_HASH_MSVC_RESET_PTR(x)
|
||||
#endif
|
||||
@@ -61,7 +61,7 @@ namespace boost {
|
||||
template <class T> struct type_wrapper {};
|
||||
|
||||
const static std::size_t default_initial_bucket_count = 50;
|
||||
const static float minimum_max_load_factor = 1e-3;
|
||||
const static float minimum_max_load_factor = 1e-3f;
|
||||
inline std::size_t next_prime(std::size_t n);
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -1811,7 +1811,7 @@ namespace boost {
|
||||
// Create the node before rehashing in case it throws an
|
||||
// exception (need strong safety in such a case).
|
||||
node_constructor a(this->node_alloc_, this->bucket_alloc_);
|
||||
value_type const& v(*i);
|
||||
value_type const& v = *i;
|
||||
a.construct(v);
|
||||
|
||||
// reserve has basic exception safety if the hash function
|
||||
|
||||
Reference in New Issue
Block a user