This test depends on the GncGUID having a data member, that member being public (or this function being a friend), that member being array-addressable, and the type of the array elements implementing operator==. I don't think that's the sort of test we want. Better to use guid_equal (guid, cp).