#ifndef MAKE_ARRAY_HPP #define MAKE_ARRAY_HPP #include #include template inline auto make_array(const char (&from_literal)[N]) noexcept { static_assert(N); std::array a; std::copy(+from_literal, from_literal+a.size(), a.begin()); return a; } #endif