From 29114f6538fc5698f31b17112876a6273362fdd2 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Mon, 29 Mar 2021 21:17:57 +0300 Subject: [PATCH] Explicetly delete the copy constructor and assignment operator --- elfio/elfio.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index db605ab..8dfb558 100644 --- a/elfio/elfio.hpp +++ b/elfio/elfio.hpp @@ -76,6 +76,10 @@ class elfio create( ELFCLASS32, ELFDATA2LSB ); } + //------------------------------------------------------------------------------ + elfio( const elfio& ) = delete; + elfio& operator=( const elfio& ) = delete; + //------------------------------------------------------------------------------ ~elfio() { clean(); }