Files
spark/src/lib/io/QueryParams.cpp
T
John Colvin 3c97f2552b fix build: Don't use libfmt or ranges in win cpp
I can't deal with this anymore. My build is suddenly broken on Windows
(for spark_crypto.prod branch). I assume they updated the compiler
in a way that isn't backwards compatible. Thanks Windows.
2023-07-05 11:58:14 -04:00

19 lines
346 B
C++

#include "QueryParams.h"
namespace bts::io {
std::string QueryParams::to_string() const {
std::string rv;
auto it = begin();
if (it == end()) {
return "";
}
rv.append(it->first + "=" + it->second);
while (++it != end()) {
rv.append("&" + it->first + "=" + it->second);
}
return rv;
}
} // namespace bts::io