From efac53e969ccefc01bace1a5f095dfd3570c3767 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Mon, 17 Jul 2017 01:18:10 -0400 Subject: Remove PtrCloser (#198) With C++11, we don't need PtrCloser anymore because we can just use std::unique_ptr. --- src/main/driver_unified.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/driver_unified.cpp') diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index 8b79e046c..697ce6642 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include // This must come before PORTFOLIO_BUILD. @@ -27,7 +28,6 @@ #include "base/configuration.h" #include "base/output.h" -#include "base/ptr_closer.h" #include "expr/expr_iomanip.h" #include "expr/expr_manager.h" #include "main/command_executor.h" @@ -249,7 +249,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { } # endif - PtrCloser replayParser; + std::unique_ptr replayParser; if( opts.getReplayInputFilename() != "" ) { std::string replayFilename = opts.getReplayInputFilename(); ParserBuilder replayParserBuilder(exprMgr, replayFilename, opts); @@ -357,7 +357,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { vector< vector > allCommands; allCommands.push_back(vector()); - PtrCloser parser(parserBuilder.build()); + std::unique_ptr parser(parserBuilder.build()); if(replayParser) { // have the replay parser use the file's declarations replayParser->useDeclarationsFrom(parser.get()); @@ -512,7 +512,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { #endif /* CVC4_COMPETITION_MODE && !CVC4_SMTCOMP_APPLICATION_TRACK */ } - PtrCloser parser(parserBuilder.build()); + std::unique_ptr parser(parserBuilder.build()); if(replayParser) { // have the replay parser use the file's declarations replayParser->useDeclarationsFrom(parser.get()); -- cgit v1.2.3