MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / fromString

Function fromString

include/cucumber-cpp/internal/step/StepManager.hpp:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199template<typename T>
200T fromString(const std::string& s) {
201 std::istringstream stream(s);
202 T t;
203 stream >> t;
204 if (stream.fail()) {
205 throw std::invalid_argument("Cannot convert parameter");
206 }
207 return t;
208}
209
210template<>
211inline std::string fromString(const std::string& s) {

Callers

nothing calls this directly

Calls 1

failMethod · 0.80

Tested by

no test coverage detected