Create a gist now

Instantly share code, notes, and snippets.

C++11 make_array template function
template <typename... T>
constexpr auto make_array(T&&... values) ->
std::array<
typename std::decay<
typename std::common_type<T...>::type>::type,
sizeof...(T)> {
return std::array<
typename std::decay<
typename std::common_type<T...>::type>::type,
sizeof...(T)>{std::forward<T>(values)...};
}
@quietdragon

What are the licensing terms of this gist ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment