Skip to content

Commit

Permalink
Changed to_string() to the c++11 version
Browse files Browse the repository at this point in the history
  • Loading branch information
dchao committed Aug 13, 2014
1 parent d1d95b2 commit 9cfd75f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion slac_merge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LDFLAGS += -L/usr/local/lib -lsqlite3
OLD_GENERIC_EVENTID_PATHNAME = $(shell pwd)/old_generic_ml_assignment.txt
CXXFLAGS += -D__OLD_GENERIC_EVENTID_PATHNAME='"$(OLD_GENERIC_EVENTID_PATHNAME)"'

target_list = merge_ntp assign_sigmc_ml assign_generic_ml
target_list = merge_ntp #assign_sigmc_ml assign_generic_ml
library_list = mtrand.o


Expand Down
6 changes: 0 additions & 6 deletions slac_merge/assign_generic_ml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@

using namespace std;

string to_string(int a) {
stringstream ss;
ss << a;
return ss.str();
}

// read old ml assignments into a map
void get_old_assignments(map<string, string> &ml_assignment) {
ifstream f(__OLD_GENERIC_EVENTID_PATHNAME);
Expand Down
6 changes: 0 additions & 6 deletions slac_merge/assign_sigmc_ml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@

using namespace std;

string to_string(int a) {
stringstream ss;
ss << a;
return ss.str();
}

// usage message
void print_usage(char **argv) {
cout << endl;
Expand Down

0 comments on commit 9cfd75f

Please sign in to comment.