forked from boostorg/container_hash
Remove uses of assert() from tests
[SVN r33011]
This commit is contained in:
1 parent
59ee910b2e
commit
bbb8d4f19f
2 files changed
+5
-2
No files matched your search
@@ -7,11 +7,13 @@
|
||||
#define HASH_NAMESPACE boost
|
||||
#define BOOST_HASH_NO_EXTENSIONS
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
extern int f(std::size_t, int*);
|
||||
|
||||
int main() {
|
||||
HASH_NAMESPACE::hash<int*> ptr_hasher;
|
||||
int x = 55;
|
||||
return f(ptr_hasher(&x), &x);
|
||||
BOOST_TEST(!f(ptr_hasher(&x), &x));
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in new issue
Block a user