Improved support for Visual C++.

[SVN r2985]
This commit is contained in:
Daniel James
2006-06-12 23:30:46 +00:00
parent 58dda15273
commit ff91c72eec
19 changed files with 154 additions and 81 deletions

View File

@@ -47,7 +47,7 @@ namespace test
friend object generate(object const*) {
int* x;
int* x = 0;
return object(generate(x), generate(x));
}
@@ -339,10 +339,7 @@ namespace test
return (std::numeric_limits<size_type>::max)();
}
friend bool operator==(allocator const& x, allocator const& y)
{
return x.tag_ == y.tag_;
}
friend bool operator==(allocator const& x, allocator const& y);
friend bool operator!=(allocator const& x, allocator const& y)
{
@@ -351,4 +348,17 @@ namespace test
};
}
#if !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
namespace test
{
#endif
template <class T>
bool operator==(test::allocator<T> const& x, test::allocator<T> const& y)
{
return x.tag_ == y.tag_;
}
#if !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
}
#endif
#endif