Templatize ParseeGoogleMockStringFlag on String type.

This commit is contained in:
kosak 2015-07-27 22:08:34 +00:00
parent 37a8c1068d
commit c820efcc04

View File

@ -106,8 +106,9 @@ static bool ParseGoogleMockBoolFlag(const char* str, const char* flag,
// //
// On success, stores the value of the flag in *value, and returns // On success, stores the value of the flag in *value, and returns
// true. On failure, returns false without changing *value. // true. On failure, returns false without changing *value.
template <typename String>
static bool ParseGoogleMockStringFlag(const char* str, const char* flag, static bool ParseGoogleMockStringFlag(const char* str, const char* flag,
std::string* value) { String* value) {
// Gets the value of the flag as a string. // Gets the value of the flag as a string.
const char* const value_str = ParseGoogleMockFlagValue(str, flag, false); const char* const value_str = ParseGoogleMockFlagValue(str, flag, false);