
28 Nov
2012
28 Nov
'12
4:43 p.m.
On Tue, Nov 27, 2012 at 3:35 PM, Jeffrey Lee Hellrung, Jr. < jeffrey.hellrung@gmail.com> wrote: [...]
First go at it:
/*** BEGIN NULLPTR DEFINITION ***/
#include <boost/config.hpp>
#ifndef BOOST_NO_NULLPTR
#include <cstddef>
namespace boost {
typedef std::nullptr_t nullptr_t;
} // namespace boost
#else // #ifndef BOOST_NO_NULLPTR
[...]
using boost::nullptr;
One thing I wonder about is if this using declaration is The Right Thing To Do. An alternative is to provide a macro to bring the nullptr identifier into the current scope (and which does nothing in C++11).
#endif // #ifndef BOOST_NO_NULLPTR
[...] - Jeff