From 0c8d74863f7ff37ccbe0da85491edc5907543320 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 16 Feb 2001 23:06:57 +0000 Subject: [PATCH] Add an implicit conversion operator to operator_arrow_proxy as CW and BCC workarounds. [SVN r9233] --- include/boost/iterator_adaptors.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index a40c861..cbcf3cc 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -12,6 +12,9 @@ // // Revision History: +// 16 Feb 2001 David Abrahams +// Add an implicit conversion operator to operator_arrow_proxy +// as CW and BCC workarounds. // 11 Feb 2001 David Abrahams // Switch to use of BOOST_STATIC_CONSTANT where possible // 11 Feb 2001 Jeremy Siek @@ -316,6 +319,9 @@ namespace detail { { operator_arrow_proxy(const T& x) : m_value(x) {} const T* operator->() const { return &m_value; } + // This function is needed for MWCW and BCC, which won't call operator-> + // again automatically per 13.3.1.2 para 8 + operator const T*() const { return &m_value; } T m_value; };