ACE3/extensions/common/shared.cpp
Dedmen Miller c4f9b6c19b Removed/disable unused stuff (#5694)
C++17 compat by removing stuff that was deprecated in C++14
2017-10-28 21:39:46 +02:00

25 lines
579 B
C++

#include "shared.hpp"
#include <functional>
#include <sstream>
int test(int var) {
return var;
}
namespace ace {
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
std::stringstream ss(s);
std::string item;
while (std::getline(ss, item, delim)) {
elems.push_back(item);
}
return elems;
}
std::vector<std::string> split(const std::string &s, char delim) {
std::vector<std::string> elems;
split(s, delim, elems);
return elems;
}
}