What is the most concise but readable way to check if the GUID is zero? I came up with the following code:
GUID myGuid ; GUID zeroGuid; memset(&zeroGuid, 0, sizeof(zeroGuid)); if (!IsEqualGUID(myGuid, zeroGuid)) {
But I think the code is too clumsy. Of course, I could define my own IsZeroGUID () function, but I assume that C ++ already has a built-in function.
Is there a better way?
c ++ guid visual-studio-2008
user128300
source share