From c831d34205a473cbace8a546704a992ba8220dd6 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Tue, 7 Aug 2018 17:26:58 -0700 Subject: Delete functions instead of using CVC4_UNDEFINED (#1794) C++11 supports explicitly deleting functions that should not be used (explictly or implictly), e.g. copy or assignment constructors. We were previously using the CVC4_UNDEFINED macro that used a compiler-specific attribute. The C++11 feature should be more portable. --- src/smt_util/boolean_simplification.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/smt_util/boolean_simplification.h') diff --git a/src/smt_util/boolean_simplification.h b/src/smt_util/boolean_simplification.h index 6274d0dbd..8e4d8aa25 100644 --- a/src/smt_util/boolean_simplification.h +++ b/src/smt_util/boolean_simplification.h @@ -35,8 +35,8 @@ namespace CVC4 { */ class BooleanSimplification { // cannot construct one of these - BooleanSimplification() CVC4_UNDEFINED; - BooleanSimplification(const BooleanSimplification&) CVC4_UNDEFINED; + BooleanSimplification() = delete; + BooleanSimplification(const BooleanSimplification&) = delete; static bool push_back_associative_commute_recursive( Node n, std::vector& buffer, Kind k, Kind notK, bool negateNode) -- cgit v1.2.3