From 789cb2b24f82eda9f504bdcac5aa1f98c0f972f0 Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Tue, 27 Mar 2007 16:02:57 +0000 Subject: [PATCH] boost::none implementation fixed for bcc <= 5.6.4 [SVN r37301] --- include/boost/none.hpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/boost/none.hpp b/include/boost/none.hpp index 1f38291..fc6da93 100644 --- a/include/boost/none.hpp +++ b/include/boost/none.hpp @@ -12,12 +12,25 @@ #ifndef BOOST_NONE_17SEP2003_HPP #define BOOST_NONE_17SEP2003_HPP +#include + namespace boost { +#if BOOST_WORKAROUND(_BORLANDC_, <= 0x564) + +namespace detail { struct none_helper{}; } + +typedef int detail::none_helper::*none_t ; + +none_t const none = ((none_t)0) ; + +#else + enum none_t {none = 0}; -} // namespace boost +#endif +} // namespace boost #endif