none_t/none reimplemented to avoid precompiled header issues (thanks to Joe Gottam)

optional<T> now has direct relational operator
optional<T>::operator-> fixed for reference types


[SVN r37126]
This commit is contained in:
Fernando Cacciola
2007-03-01 23:08:33 +00:00
parent 9bbde2be14
commit b6a1946a60
6 changed files with 391 additions and 186 deletions

View File

@ -12,17 +12,12 @@
#ifndef BOOST_NONE_17SEP2003_HPP
#define BOOST_NONE_17SEP2003_HPP
#include "boost/none_t.hpp"
// NOTE: Borland users have to include this header outside any precompiled headers
// (bcc<=5.64 cannot include instance data in a precompiled header)
// -- * To be verified, now that there's no unnamed namespace
namespace boost {
none_t const none = ((none_t)0) ;
enum none_t {none = 0};
} // namespace boost
#endif