forked from boostorg/unordered
Replace all usages of boost::addressof with their std counterpart
This commit is contained in:
1 parent
f1729bb8a1
commit
7aac692162
7 files changed
+24
-24
No files matched your search
@@ -536,7 +536,7 @@ public:
|
||||
T& operator[](std::ptrdiff_t s) const { return ptr_[s]; }
|
||||
bool operator!() const { return !ptr_; }
|
||||
|
||||
static ptr pointer_to(T& p) { return ptr(boost::addressof(p)); }
|
||||
static ptr pointer_to(T& p) { return ptr(std::addressof(p)); }
|
||||
|
||||
// I'm not using the safe bool idiom because the containers should be
|
||||
// able to cope with bool conversions.
|
||||
|
||||
@@ -339,7 +339,7 @@ namespace test {
|
||||
bool operator!() const { return !ptr_; }
|
||||
|
||||
static ptr pointer_to(T& p) {
|
||||
return ptr(boost::addressof(p));
|
||||
return ptr(std::addressof(p));
|
||||
}
|
||||
|
||||
// I'm not using the safe bool idiom because the containers should be
|
||||
|
||||
@@ -451,14 +451,14 @@ namespace rehash_tests {
|
||||
|
||||
typedef typename X::iterator iterator;
|
||||
for (iterator pos = x.begin(); pos != x.end(); ++pos) {
|
||||
elements.insert(boost::addressof(*pos));
|
||||
elements.insert(std::addressof(*pos));
|
||||
}
|
||||
|
||||
x.rehash(2 * x.bucket_count());
|
||||
|
||||
for (iterator pos = x.begin(); pos != x.end(); ++pos) {
|
||||
if (!BOOST_TEST(
|
||||
elements.find(boost::addressof(*pos)) != elements.end())) {
|
||||
elements.find(std::addressof(*pos)) != elements.end())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user