mirror of
https://github.com/boostorg/optional.git
synced 2025-07-25 01:57:14 +02:00
boost::none implementation fixed for bcc <= 5.6.4
[SVN r37301]
This commit is contained in:
@ -12,12 +12,25 @@
|
|||||||
#ifndef BOOST_NONE_17SEP2003_HPP
|
#ifndef BOOST_NONE_17SEP2003_HPP
|
||||||
#define BOOST_NONE_17SEP2003_HPP
|
#define BOOST_NONE_17SEP2003_HPP
|
||||||
|
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
namespace boost {
|
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};
|
enum none_t {none = 0};
|
||||||
|
|
||||||
} // namespace boost
|
#endif
|
||||||
|
|
||||||
|
} // namespace boost
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user