Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 Glen Joseph Fernandes |
| 3 | * glenfe at live dot com |
| 4 | * |
| 5 | * Distributed under the Boost Software License, |
| 6 | * Version 1.0. (See accompanying file LICENSE_1_0.txt |
| 7 | * or copy at http://boost.org/LICENSE_1_0.txt) |
| 8 | */ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 9 | #ifndef NDNBOOST_SMART_PTR_DETAIL_SP_IF_ARRAY_HPP |
| 10 | #define NDNBOOST_SMART_PTR_DETAIL_SP_IF_ARRAY_HPP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 11 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 12 | #include <ndnboost/smart_ptr/shared_ptr.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 13 | |
| 14 | namespace ndnboost { |
| 15 | namespace detail { |
| 16 | template<typename T> |
| 17 | struct sp_if_array; |
| 18 | template<typename T> |
| 19 | struct sp_if_array<T[]> { |
| 20 | typedef ndnboost::shared_ptr<T[]> type; |
| 21 | }; |
| 22 | template<typename T> |
| 23 | struct sp_if_size_array; |
| 24 | template<typename T, std::size_t N> |
| 25 | struct sp_if_size_array<T[N]> { |
| 26 | typedef ndnboost::shared_ptr<T[N]> type; |
| 27 | }; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | #endif |