From 3599398ecaf607724a52d2d41bdbd2d2426d8292 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 31 Jul 2004 22:56:49 +0000 Subject: [PATCH] Workaround CW8 issues with using static_cast on templates with template ctors. [SVN r24214] --- include/boost/iterator/iterator_facade.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/iterator/iterator_facade.hpp b/include/boost/iterator/iterator_facade.hpp index 0f16439..64f9057 100644 --- a/include/boost/iterator/iterator_facade.hpp +++ b/include/boost/iterator/iterator_facade.hpp @@ -814,8 +814,8 @@ namespace boost is_interoperable< Derived1, Derived2 >::value \ )); \ return_prefix iterator_core_access::base_op( \ - static_cast(lhs) \ - , static_cast(rhs) \ + *static_cast(&lhs) \ + , *static_cast(&rhs) \ , BOOST_ITERATOR_CONVERTIBLE(Derived2,Derived1) \ ); \ }