borland workaround

[SVN r21800]
This commit is contained in:
Dave Abrahams
2004-01-18 16:21:05 +00:00
parent 7f5d7a5c54
commit 308df430d2

View File

@@ -52,12 +52,13 @@ namespace boost {
// is really quite innocent. The name of this class needs to be // is really quite innocent. The name of this class needs to be
// changed. // changed.
template <class T> template <class T>
class static_object { class static_object
{
public: public:
static T& get() { static T& get()
static char d[sizeof(T)]; {
return *reinterpret_cast<T*>(d); return *reinterpret_cast<T*>(0);
} }
}; };
template <class Base = null_archetype<> > template <class Base = null_archetype<> >