• Mark Mentovai's avatar
    Use a templated helper to wrap the cast · cfe466a0
    Mark Mentovai authored
    The helper needs to be templated because its argument type can’t be
    known. FloatingPointTest is instantiated with RawType = float and
    RawType = double, so Bits will be an unsigned 32-bit or 64-bit type.
    size_t will be either 32 or 64 bits depending on the system’s
    definition, typically based on pointer size.
    cfe466a0
gmock-matchers_test.cc 178 KB