From 308df430d20cefb2dc6f5ee32cb2642408633f23 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 18 Jan 2004 16:21:05 +0000 Subject: [PATCH] borland workaround [SVN r21800] --- include/boost/concept_archetype.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/boost/concept_archetype.hpp b/include/boost/concept_archetype.hpp index eff3296..4b0cc11 100644 --- a/include/boost/concept_archetype.hpp +++ b/include/boost/concept_archetype.hpp @@ -52,12 +52,13 @@ namespace boost { // is really quite innocent. The name of this class needs to be // changed. template - class static_object { + class static_object + { public: - static T& get() { - static char d[sizeof(T)]; - return *reinterpret_cast(d); - } + static T& get() + { + return *reinterpret_cast(0); + } }; template >