Improve the unordered tests support for some older compilers.

Better testing of elements with equivalent keys.


[SVN r7458]
This commit is contained in:
Daniel James committed 2007-07-17 23:17:21 +00:00
1 parent 6af2b965bb
commit aabf1a408b
11 files changed
+176 -20

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ namespace test
{
int generate(int const*);
char generate(char const*);
signed char generate(signed char const*);
std::string generate(std::string*);
float generate(float const*);
template <class T1, class T2>
+6
View File
@@ -56,6 +56,12 @@ namespace test
return (rand() >> 1) % (128-32) + 32;
}
inline signed char generate(signed char const*)
{
using namespace std;
return rand();
}
inline std::string generate(std::string const*)
{
using namespace std;