Boost logo

Boost :

From: dieMumiee_at_[hidden]
Date: 2004-12-26 04:54:07


Hi,
Found that code in boost/spirit/iterator/file_iterator.hpp

template <
    typename CharT = char,
    typename BaseIterator =
#ifndef BOOST_SPIRIT_FILEITERATOR_WINDOWS
        fileiter_impl::std_file_iterator<CharT>
#else
        fileiter_impl::mmap_file_iterator<CharT>
#endif
> class file_iterator;

BOOST_SPIRIT_FILEITERATOR_POSIX which is defined a few lines above is never
used. Are there any issues with the posix-mmap code? It "worked" here, I
modified the code to :

template <
    typename CharT = char,
    typename BaseIterator =
#if defined(BOOST_SPIRIT_FILEITERATOR_WINDOWS) ||
defined(BOOST_SPIRIT_FILEITERATOR_POSIX)
     fileiter_impl::mmap_file_iterator<CharT>
#else
     fileiter_impl::std_file_iterator<CharT>
#endif
> class file_iterator;

Regards,
Andreas Pokorny

-- 
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben

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