Skip to content

Commit c4cf531

Browse files
authored
base_identity.h: added missing constexpr (#1589)
Added missing constexpr to is_guid_of helper. guid_of is already constexpr: constexpr:https://github.com/microsoft/cppwinrt/blob/55f1b452aca069d6ac7eaad3e05cc1058fc39d27/strings/base_identity.h#L8 and find_iid_traits::test is constexpr and calls is_guid_of: https://github.com/microsoft/cppwinrt/blob/55f1b452aca069d6ac7eaad3e05cc1058fc39d27/strings/base_implements.h#L397
1 parent 55f1b45 commit c4cf531

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

strings/base_identity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WINRT_EXPORT namespace winrt
1111
}
1212

1313
template <typename... T>
14-
bool is_guid_of(guid const& id) noexcept
14+
constexpr bool is_guid_of(guid const& id) noexcept
1515
{
1616
return ((id == guid_of<T>()) || ...);
1717
}

0 commit comments

Comments
 (0)