From be0267f9a3f9f5e8abcb0111fdfe56b35fd04495 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 3 Feb 2003 13:48:33 +0000 Subject: [PATCH] Enabled copy assignment on all Borland versions (for Kylix) and g++ (for -Wsynth, report by Wolfgang Bangerth) [SVN r17173] --- include/boost/shared_ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index debb9a7..e66373a 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -129,8 +129,8 @@ public: // generated copy constructor, assignment, destructor are fine... -// except on Borland C++ 5.5.1 (and 5.6) -#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x561) +// except that Borland C++ has a bug, and g++ with -Wsynth warns +#if defined(__BORLANDC__) || defined(__GNUC__) shared_ptr & operator=(shared_ptr const & r) // never throws {