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.
19 lines
346 B
C++
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
|