forked from boostorg/concept_check
borland workaround
[SVN r21800]
This commit is contained in:
@@ -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<> >
|
||||||
|
Reference in New Issue
Block a user