From 69ecae6919b417be2b2558aefffea97fbe50d4a8 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Tue, 29 Mar 2016 18:38:34 -0700 Subject: [PATCH] cleaned up commented out code related to new operators --- include/boost/archive/detail/iserializer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/archive/detail/iserializer.hpp b/include/boost/archive/detail/iserializer.hpp index 9e649a05..6bec499b 100644 --- a/include/boost/archive/detail/iserializer.hpp +++ b/include/boost/archive/detail/iserializer.hpp @@ -234,7 +234,7 @@ struct heap_allocation { // that the class might have class specific new with NO // class specific delete at all. Patches (compatible with // C++03) welcome! - (operator delete)(t); + delete t; } }; struct doesnt_have_new_operator { @@ -243,7 +243,7 @@ struct heap_allocation { } static void invoke_delete(T * t) { // Note: I'm reliance upon automatic conversion from T * to void * here - (operator delete)(t); + delete t; } }; static T * invoke_new() {