Skip to content

Commit

Permalink
Merge pull request #54 from sketchylizard/sketchylizard/FixInlineVari…
Browse files Browse the repository at this point in the history
…ables

Declare variables as inline
  • Loading branch information
mariusbancila authored Jan 13, 2022
2 parents 9357e52 + 76c4651 commit 1da3294
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/uuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,16 @@ namespace uuids
};

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 <>
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>
constexpr CharT guid_encoder[17] = "0123456789abcdef";
inline constexpr CharT guid_encoder[17] = "0123456789abcdef";

template <>
constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef";
inline constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef";
}

// --------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 1da3294

Please sign in to comment.