boost::none implementation fixed for bcc <= 5.6.4

[SVN r37301]
This commit is contained in:
Fernando Cacciola
2007-03-27 16:02:57 +00:00
parent 7287f2bf11
commit 789cb2b24f

View File

@ -12,12 +12,25 @@
#ifndef BOOST_NONE_17SEP2003_HPP
#define BOOST_NONE_17SEP2003_HPP
#include <boost/detail/workaround.hpp>
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