Memory: Make `pinned_allocator`'s comparison operators const.
GitHub
Bug
Bug
git-commit
git-author TurboLed
[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246948]
MODIFY
thrust/system/cuda/experimental/pinned_allocator.h
thrust/system/cuda/experimental/pinned_allocator.h
@@ -201,7 +201,7 @@ template<typename T>
* \return This method always returns \c true.
*/
__host__ __device__
- inline bool operator==(pinned_allocator const&) { return true; }
+ inline bool operator==(pinned_allocator const&) const { return true; }
/*! This method tests this \p pinned_allocator for inequality
* to another.
@@ -210,7 +210,7 @@ template<typename T>
* \return This method always returns \c false.
*/
__host__ __device__
- inline bool operator!=(pinned_allocator const &x) { return !operator==(x); }
+ inline bool operator!=(pinned_allocator const &x) const { return !operator==(x); }
}; // end pinned_allocator
/*! \}

Memory: Make `pinned_allocator`'s comparison operators const.
GitHub #899
Bug 2157926
Bug 1865408
git-commit 58becd469d182c00ecfd0a62bdea40fa1a42a6bf
git-author TurboLed <turboled@hotmail.com>

[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246948]