Skip to content
Snippets Groups Projects
Commit b7d723ec authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

string utils: cleanup

Change-Id: I31f6aa38b7773bc0ecbdeb4ba2ae556f3fd53cc3
parent ebb5e5c1
Branches
Tags
No related merge requests found
...@@ -70,16 +70,6 @@ bstrToStdString(BSTR bstr) ...@@ -70,16 +70,6 @@ bstrToStdString(BSTR bstr)
} }
#endif #endif
std::string
to_string(double value)
{
char buf[64];
int len = snprintf(buf, sizeof(buf), "%-.*G", 16, value);
if (len <= 0)
throw std::invalid_argument{"can't parse double"};
return {buf, (size_t)len};
}
std::string std::string
trim(const std::string &s) trim(const std::string &s)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment