summaryrefslogtreecommitdiffstats
path: root/indexlib/boost-compat/shared_ptr.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-27 12:49:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-31 17:18:57 +0900
commit1a970c2afc4e53022428cf2aa83c333fa31f2bbd (patch)
treef866542d0c62a2766021e753ce9a5e0a1ec01020 /indexlib/boost-compat/shared_ptr.h
parent3f74eb8afdac3c84b4179f25ca275f9b3b50ba5c (diff)
downloadtdepim-1a970c2afc4e53022428cf2aa83c333fa31f2bbd.tar.gz
tdepim-1a970c2afc4e53022428cf2aa83c333fa31f2bbd.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6b1f9116760b2a693428cc93a0304dd3d7d2856a)
Diffstat (limited to 'indexlib/boost-compat/shared_ptr.h')
-rw-r--r--indexlib/boost-compat/shared_ptr.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/indexlib/boost-compat/shared_ptr.h b/indexlib/boost-compat/shared_ptr.h
index a242c829..a37976fa 100644
--- a/indexlib/boost-compat/shared_ptr.h
+++ b/indexlib/boost-compat/shared_ptr.h
@@ -106,7 +106,6 @@ template<class T> class shared_ptr
{
private:
- // Borland 5.5.1 specific workaround
typedef shared_ptr<T> this_type;
public:
@@ -139,8 +138,8 @@ public:
// generated copy constructor, assignment, destructor are fine...
-// except that Borland C++ has a bug, and g++ with -Wsynth warns
-#if defined(__BORLANDC__) || defined(__GNUC__)
+// except that g++ with -Wsynth warns
+#if defined(__GNUC__)
shared_ptr & operator=(shared_ptr const & r) // never throws
{