forked from boostorg/unordered
Unordered: Merge from trunk
- Avoid an incorrect MSVC unused variable warning in the tests. - Remove a `try..catch`. - Adjust SFINAE use to try to supprt g++ 3.4. Fixes #7175. - Fix some use of rvalues. - Extra info in `at_tests`. [SVN r79868]
This commit is contained in:
@@ -26,7 +26,9 @@ namespace test
|
||||
template <class T> class allocator2;
|
||||
object generate(object const*);
|
||||
implicitly_convertible generate(implicitly_convertible const*);
|
||||
|
||||
|
||||
inline void ignore_variable(void const*) {}
|
||||
|
||||
class object : private counted_object
|
||||
{
|
||||
friend class hash;
|
||||
@@ -248,6 +250,9 @@ namespace test
|
||||
void destroy(T* p) {
|
||||
//detail::tracker.track_destroy((void*) p, sizeof(T), tag_);
|
||||
p->~T();
|
||||
|
||||
// Work around MSVC buggy unused parameter warning.
|
||||
ignore_variable(&p);
|
||||
}
|
||||
|
||||
bool operator==(allocator1 const& x) const
|
||||
|
||||
Reference in New Issue
Block a user