Shadowing variable declaration warning when using check/assert macros
Since the CHECK macros with message argument internally declare a std::stringstream ss
, declaring another variable ss
outside the macro will result in a shadowing declaration warning by the compiler.
Same holds for ASSERT macros with message.
Thus, the stringstream variable inside the macros should be renamed to something unique-ish. Like __s__
?