// SPDX-FileCopyrightText: Copyright (c) 2022 merryhime // SPDX-License-Identifier: MIT #pragma once #include #include namespace oaknut { template struct StringLiteral { constexpr StringLiteral(const char (&str)[N]) { std::copy_n(str, N, value); } static constexpr std::size_t strlen = N - 1; static constexpr std::size_t size = N; char value[N]; }; } // namespace oaknut