1 | /* |
2 | * Copyright (c) 2014 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 | */ |
9 | #ifndef BOOST_SMART_PTR_DETAIL_UP_IF_NOT_ARRAY_HPP |
10 | #define BOOST_SMART_PTR_DETAIL_UP_IF_NOT_ARRAY_HPP |
11 | |
12 | #include <memory> |
13 | |
14 | namespace boost { |
15 | namespace detail { |
16 | template<class T> |
17 | struct up_if_not_array { |
18 | typedef std::unique_ptr<T> type; |
19 | }; |
20 | |
21 | template<class T> |
22 | struct up_if_not_array<T[]> { |
23 | }; |
24 | |
25 | template<class T, std::size_t N> |
26 | struct up_if_not_array<T[N]> { |
27 | }; |
28 | } |
29 | } |
30 | |
31 | #endif |
32 | |