Add am implementation note about the Visual C++ problems.

[SVN r54399]
This commit is contained in:
Daniel James
2009-06-27 07:39:12 +00:00
parent f2dd570ee9
commit 4936095357

View File

@@ -96,6 +96,11 @@ namespace BOOST_HASH_DETECT_FLOAT_FUNCTIONS {
// Then the call_* functions select an appropriate implementation. // Then the call_* functions select an appropriate implementation.
// //
// I used c99_func in a few places just to get a unique name. // I used c99_func in a few places just to get a unique name.
//
// Important: when using 'using namespace' at namespace level, include as
// little as possible in that namespace, as Visual C++ has an odd bug which
// can cause the namespace to be imported at the global level. This seems to
// happen mainly when there's a template in the same namesapce.
#define BOOST_HASH_CALL_FLOAT_FUNC(cpp_func, c99_func, type1, type2) \ #define BOOST_HASH_CALL_FLOAT_FUNC(cpp_func, c99_func, type1, type2) \
namespace BOOST_HASH_DETECT_FLOAT_FUNCTIONS { \ namespace BOOST_HASH_DETECT_FLOAT_FUNCTIONS { \