From 9932a674639f0621c0041e9f21f8b04e0efda331 Mon Sep 17 00:00:00 2001 From: Vladimir Kulikovskiy Date: Thu, 30 Apr 2020 19:54:54 +0200 Subject: [PATCH] fix for older compilers --- matching/getdelay.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matching/getdelay.cc b/matching/getdelay.cc index bc8078b..1d0ece8 100644 --- a/matching/getdelay.cc +++ b/matching/getdelay.cc @@ -47,14 +47,14 @@ int main(int argc, char *argv[]) { TH1D *hdet1 = new TH1D("h1", "", 100000, -2000, 8000); TH1D *hdet2 = new TH1D("h2", "", 100000, -2000, 8000); - ifstream ifs(f1); + ifstream ifs(f1.c_str()); double _t, _val; int bin = 0; while (ifs >> _t >> _val) { bin++; hdet1->SetBinContent(bin,_val); } - ifstream ifs2(f2); + ifstream ifs2(f2.c_str()); bin = 0; while (ifs2 >> _t >> _val) { bin++;