blob: 5348061331ed27d62d6f6558cc8dec89e912b31f [file] [log] [blame]
Jeff Thompson3d613fd2013-10-15 15:39:04 -07001#ifndef NDNBOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED
2#define NDNBOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED
Jeff Thompsonf7d49942013-08-01 16:47:40 -07003
4// MS compatible compilers support #pragma once
5
6#if defined(_MSC_VER) && (_MSC_VER >= 1020)
7# pragma once
8#endif
9
10// detail/sp_nullptr_t.hpp
11//
12// Copyright 2013 Peter Dimov
13//
14// Distributed under the Boost Software License, Version 1.0.
15// See accompanying file LICENSE_1_0.txt or copy at
16// http://www.boost.org/LICENSE_1_0.txt
17
Jeff Thompson2277ce52013-08-01 17:34:11 -070018#include <ndnboost/config.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070019#include <cstddef>
20
Jeff Thompson3d613fd2013-10-15 15:39:04 -070021#if !defined( NDNBOOST_NO_CXX11_NULLPTR )
Jeff Thompsonf7d49942013-08-01 16:47:40 -070022
23namespace ndnboost
24{
25
26namespace detail
27{
28
Jeff Thompson3d613fd2013-10-15 15:39:04 -070029#if defined( __clang__ ) && !defined( _LIBCPP_VERSION ) && !defined( NDNBOOST_NO_CXX11_DECLTYPE )
Jeff Thompsonf7d49942013-08-01 16:47:40 -070030
31 typedef decltype(nullptr) sp_nullptr_t;
32
33#else
34
35 typedef std::nullptr_t sp_nullptr_t;
36
37#endif
38
39} // namespace detail
40
41} // namespace ndnboost
42
Jeff Thompson3d613fd2013-10-15 15:39:04 -070043#endif // !defined( NDNBOOST_NO_CXX11_NULLPTR )
Jeff Thompsonf7d49942013-08-01 16:47:40 -070044
Jeff Thompson3d613fd2013-10-15 15:39:04 -070045#endif // #ifndef NDNBOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED