Skip to content

Instantly share code, notes, and snippets.

@klmr klmr/make_array.hpp
Last active Mar 6, 2020

What would you like to do?
C++11 make_array function template
template <typename... T>
constexpr auto make_array(T&&... values) ->
typename std::decay<
typename std::common_type<T...>::type>::type,
sizeof...(T)> {
return {std::forward<T>(values)...};

This comment has been minimized.

Copy link

quietdragon commented May 18, 2015

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
You can’t perform that action at this time.