diff --git a/CMakeLists.txt b/CMakeLists.txt index f5b2d5b8..e4b29787 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,9 @@ cmake_minimum_required(VERSION 3.18) project(hpstr) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_C_STANDARD 14) +set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD_REQUIRED ON) if(NOT CMAKE_BUILD_TYPE) diff --git a/processors/src/StdhepMCParticleProcessor.cxx b/processors/src/StdhepMCParticleProcessor.cxx index df78421e..3c585e50 100644 --- a/processors/src/StdhepMCParticleProcessor.cxx +++ b/processors/src/StdhepMCParticleProcessor.cxx @@ -65,7 +65,7 @@ bool StdhepMCParticleProcessor::process() { mc_particles_.clear(); } - std::auto_ptr evt( new IMPL::LCEventImpl() ) ; + std::unique_ptr evt( new IMPL::LCEventImpl() ) ; evt->setRunNumber(0) ; evt->setEventNumber(count) ; diff --git a/processors/src/SvtRawDataAnaProcessor.cxx b/processors/src/SvtRawDataAnaProcessor.cxx index 5d4f9b64..ae4be8d3 100644 --- a/processors/src/SvtRawDataAnaProcessor.cxx +++ b/processors/src/SvtRawDataAnaProcessor.cxx @@ -150,7 +150,7 @@ void SvtRawDataAnaProcessor::initialize(TTree* tree) { std::ifstream myfile2(timeProfiles_.data()); std::string s; std::string s2; - std::vector baselines; + // std::vector baselines; for(int i=0; i<24576; i++){ std::getline(myfile,s); std::getline(myfile2,s2);