Use const T (&)[N] for fixed size arrays instead of std::initializer<T> in overloads of make_shared and allocate_shared for arrays.

[SVN r81641]
This commit is contained in:
Glen Fernandes
2012-12-01 04:36:41 +00:00
parent 39ff002d2e
commit 4da0e2b7fc
6 changed files with 78 additions and 44 deletions
@@ -22,8 +22,7 @@ namespace boost {
typedef typename array_base<T>::type type;
};
template<typename T>
struct array_size {
};
struct array_size;
template<typename T, std::size_t N>
struct array_size<T[N]> {
enum {
@@ -43,8 +42,7 @@ namespace boost {
};
};
template<typename T>
struct array_inner {
};
struct array_inner;
template<typename T>
struct array_inner<T[]> {
typedef T type;
@@ -54,16 +52,11 @@ namespace boost {
typedef T type;
};
template<typename T>
struct arrays_inner {
};
struct arrays_inner;
template<typename T, std::size_t N>
struct arrays_inner<T[][N]> {
typedef T type;
};
template<typename T, std::size_t M, std::size_t N>
struct arrays_inner<T[M][N]> {
typedef T type;
};
}
}