projects
/
platform
/
upstream
/
boost.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.57.0
[platform/upstream/boost.git]
/
libs
/
functional
/
hash
/
test
/
hash_complex_test.cpp
diff --git
a/libs/functional/hash/test/hash_complex_test.cpp
b/libs/functional/hash/test/hash_complex_test.cpp
index
bb1592c
..
617b51b
100644
(file)
--- a/
libs/functional/hash/test/hash_complex_test.cpp
+++ b/
libs/functional/hash/test/hash_complex_test.cpp
@@
-5,13
+5,13
@@
#include "./config.hpp"
#include "./config.hpp"
-#if !defined(TEST_EXTENSIONS)
+#if !defined(
BOOST_HASH_
TEST_EXTENSIONS)
int main() {}
#else
int main() {}
#else
-#ifdef TEST_STD_INCLUDES
+#ifdef
BOOST_HASH_
TEST_STD_INCLUDES
# include <functional>
#else
# include <boost/functional/hash.hpp>
# include <functional>
#else
# include <boost/functional/hash.hpp>
@@
-35,7
+35,7
@@
int main() {}
#endif
#endif
#endif
#endif
-#if defined(__GNUC__)
+#if defined(__GNUC__)
&& !defined(BOOST_INTEL_CXX_VERSION)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
@@
-46,11
+46,11
@@
int main() {}
template <class T>
void generic_complex_tests(std::complex<T> v)
{
template <class T>
void generic_complex_tests(std::complex<T> v)
{
-
HASH
_NAMESPACE::hash<std::complex<T> > complex_hasher;
+
BOOST_HASH_TEST
_NAMESPACE::hash<std::complex<T> > complex_hasher;
BOOST_TEST(complex_hasher(v) == complex_hasher(v));
BOOST_TEST(complex_hasher(v) == complex_hasher(v));
-
HASH
_NAMESPACE::hash<T> real_hasher;
+
BOOST_HASH_TEST
_NAMESPACE::hash<T> real_hasher;
T real = v.real();
T imag = v.imag();
T real = v.real();
T imag = v.imag();
@@
-107,4
+107,4
@@
int main()
return boost::report_errors();
}
return boost::report_errors();
}
-#endif // TEST_EXTENSIONS
+#endif //
BOOST_HASH_
TEST_EXTENSIONS