Skip to content

Commit 22d52f2

Browse files
committed
Inline functions in utils.hpp to avoid duplicate definitions
1 parent 9f6cf45 commit 22d52f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
using namespace std;
3636

37-
vector<string> split(const string &in, const char sep) {
37+
inline vector<string> split(const string &in, const char sep) {
3838
vector<string> res;
3939
istringstream params(in);
4040
string s;
@@ -44,7 +44,7 @@ vector<string> split(const string &in, const char sep) {
4444
return res;
4545
}
4646

47-
bool stringToInt(const string &in, int *out) {
47+
inline bool stringToInt(const string &in, int *out) {
4848
stringstream ss(in);
4949
ss >> *out;
5050
if (!ss.fail()) {

0 commit comments

Comments
 (0)