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/util/bin_heap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/bin_heap.h') diff --git a/src/util/bin_heap.h b/src/util/bin_heap.h index 7d733829b..d547530b1 100644 --- a/src/util/bin_heap.h +++ b/src/util/bin_heap.h @@ -60,8 +60,8 @@ private: CmpFcn d_cmp; // disallow copy and assignment - BinaryHeap(const BinaryHeap&) CVC4_UNDEFINED; - BinaryHeap& operator=(const BinaryHeap&) CVC4_UNDEFINED; + BinaryHeap(const BinaryHeap&) = delete; + BinaryHeap& operator=(const BinaryHeap&) = delete; public: BinaryHeap(const CmpFcn& c = CmpFcn()) -- cgit v1.2.3