Skip to content

Commit 1da3294

Browse files
Merge pull request #54 from sketchylizard/sketchylizard/FixInlineVariables
Declare variables as inline
2 parents 9357e52 + 76c4651 commit 1da3294

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/uuid.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,16 @@ namespace uuids
272272
};
273273

274274
template <typename CharT>
275-
constexpr CharT empty_guid[37] = "00000000-0000-0000-0000-000000000000";
275+
inline constexpr CharT empty_guid[37] = "00000000-0000-0000-0000-000000000000";
276276

277277
template <>
278-
constexpr wchar_t empty_guid<wchar_t>[37] = L"00000000-0000-0000-0000-000000000000";
278+
inline constexpr wchar_t empty_guid<wchar_t>[37] = L"00000000-0000-0000-0000-000000000000";
279279

280280
template <typename CharT>
281-
constexpr CharT guid_encoder[17] = "0123456789abcdef";
281+
inline constexpr CharT guid_encoder[17] = "0123456789abcdef";
282282

283283
template <>
284-
constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef";
284+
inline constexpr wchar_t guid_encoder<wchar_t>[17] = L"0123456789abcdef";
285285
}
286286

287287
// --------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)