Better Borland workaround

[SVN r21848]
This commit is contained in:
Dave Abrahams
2004-01-21 00:34:27 +00:00
parent 308df430d2
commit ab0a5086b5

View File

@@ -57,7 +57,12 @@ namespace boost {
public: public:
static T& get() static T& get()
{ {
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
return *reinterpret_cast<T*>(0); return *reinterpret_cast<T*>(0);
#else
static char d[sizeof(T)];
return *reinterpret_cast<T*>(d);
#endif
} }
}; };