Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2002-08-16 12:50:32


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Beman,

On Friday 16 August 2002 19:29, Beman Dawes wrote:
> At 08:02 AM 8/16/2002, Thomas Witt wrote:
> >The following patch fixes iterator_traits for directory_iterator.
>
> Uh... operations.patch came through here as an empty file:-(

Yep, I somehow managed to erase its content prior to posting.
Sorry.

>
> By the way, what exactly was the problem?

The problem is a wrong type for the pointer and reference typedefs
They are path* and path& whereas the iterator returns paht const* and path
const&

Just change the basetype to
boost::iterator< std::input_iterator_tag, path, std::ptrdiff_t, path const*,
path const&>
and all will be fine :-).

Thanks

- --Thomas

- --
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9XTtr0ds/gS3XsBoRAkF5AJ0fPK1ixxEfemYhpp5i3MNOoTQC/QCdEyIV
qMOvFo/Pv9OIxjnLyaEGp04=
=f2mk
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk