From 299afe30ef28cf6d41dcbc088ef2dd62a17b933b Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Wed, 14 Aug 2002 16:45:55 +0000 Subject: [PATCH] Workaround compiler / iterator_adaptor interaction problem [SVN r383] --- include/boost/filesystem/recursive_directory_iterator.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/filesystem/recursive_directory_iterator.hpp b/include/boost/filesystem/recursive_directory_iterator.hpp index 17c9c0e..c5264cd 100644 --- a/include/boost/filesystem/recursive_directory_iterator.hpp +++ b/include/boost/filesystem/recursive_directory_iterator.hpp @@ -7,10 +7,6 @@ // See http://www.boost.org for most recent version including documentation. -//----------------------------------------------------------------------------// -//////////////// WARNING: THIS IS A DRAFT. USE OF operator-> IS FAILING // -//----------------------------------------------------------------------------// - #ifndef BOOST_FILESYSTEM_RECURSIVE_DIRECTORY_ITERATOR_HPP #define BOOST_FILESYSTEM_RECURSIVE_DIRECTORY_ITERATOR_HPP @@ -109,6 +105,10 @@ namespace boost { base().reset( new detail::rdi_imp ); } + + // workaround iterator_adaptor / compiler interactions + const boost::filesystem::path * operator->() const + { return &*base()->stac.top(); } }; } }