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:
Daniel James
2012-08-05 08:34:44 +00:00
parent d77453b7ad
commit 8683332b2c
3 changed files with 100 additions and 53 deletions

View File

@@ -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