Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion strings/base_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,18 @@ WINRT_EXPORT namespace winrt

inline bool operator==(guid const& left, guid const& right) noexcept
{
return !memcmp(&left, &right, sizeof(guid));
return !memcmp(&left, &right, sizeof(left));
}

inline bool operator!=(guid const& left, guid const& right) noexcept
{
return !(left == right);
}

inline bool operator<(guid const& left, guid const& right) noexcept
{
return memcmp(&left, &right, sizeof(left)) < 0;
}
}

WINRT_EXPORT namespace winrt::Windows::Foundation
Expand Down