We must explicitly overload char* so that the compiler doesn't try to cast it to bool to construct a DynamicSubstituteArg. Might as well overload const string& as well, since this allows us to avoid a temporary object.
| 74 | // overload const string& as well, since this allows us to avoid a temporary |
| 75 | // object. |
| 76 | inline SubstituteArg(const char* value) // NOLINT(runtime/explicit) |
| 77 | : text_(value), size_(value == NULL ? 0 : strlen(text_)) {} |
| 78 | inline SubstituteArg(const string& value) // NOLINT(runtime/explicit) |
| 79 | : text_(value.data()), size_(value.size()) {} |
| 80 | inline SubstituteArg(const StringPiece& value) // NOLINT(runtime/explicit) |
nothing calls this directly
no test coverage detected