Merge pull request #54 from sketchylizard/sketchylizard/FixInlineVariables

Declare variables as inline
This commit is contained in:
Marius Bancila 2022-01-13 10:10:23 +02:00 committed by GitHub
commit 1da3294a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,16 +272,16 @@ namespace uuids
}; };
template <typename CharT> template <typename CharT>
constexpr CharT empty_guid[37] = "00000000-0000-0000-0000-000000000000"; inline constexpr CharT empty_guid[37] = "00000000-0000-0000-0000-000000000000";
template <> template <>
constexpr wchar_t empty_guid<wchar_t>[37] = L"00000000-0000-0000-0000-000000000000"; inline constexpr wchar_t empty_guid<wchar_t>[37] = L"00000000-0000-0000-0000-000000000000";
template <typename CharT> template <typename CharT>
constexpr CharT guid_encoder[17] = "0123456789abcdef"; inline constexpr CharT guid_encoder[17] = "0123456789abcdef";
template <> template <>
constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef"; inline constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef";
} }
// -------------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------------