From d1c7594344d880f0ae51ea6b405cc745e70c9c83 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 27 Sep 2001 00:26:01 +0000 Subject: [PATCH] Added borland bug fix [SVN r11290] --- include/boost/iterator_adaptors.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index 0d2a5f7..596e0e3 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -12,6 +12,8 @@ // // Revision History: +// 26 Sep 2001 David Abrahams +// Added borland bug fix // 08 Mar 2001 Jeremy Siek // Added support for optional named template parameters. // 19 Feb 2001 David Abrahams @@ -644,9 +646,9 @@ struct iterator_adaptor : policies().initialize(iter()); } -#ifdef BOOST_MSVC +#if defined(BOOST_MSVC) || defined(__BORLANDC__) // This is required to prevent a bug in how VC++ generates - // the assignment operator for compressed_pair. + // the assignment operator for compressed_pairv iterator_adaptor& operator= (const iterator_adaptor& x) { m_iter_p = x.m_iter_p; return *this;