
24 Feb
2012
24 Feb
'12
5:11 a.m.
On 2/24/12 12:29 AM, Jeff Flinn wrote:
Antony Polukhin wrote:
Hi,
Boost.Spirit documentation advices to use multi_pass iterators for parsing files (or reading data to a STL container and then passing the begin and end of the container to Spirit.Qi).
Much better solution would be to use a memory mapped file:
[snip]
I switched from interprocess::file_mapping to iostreams::mapped_file_source because of the formers lack of support for wchar_t/unicode file names. It's also directly usable with boost::filesystem::path. Here's an encapsulation of iterator/range view of the mapped file:
[snip] That would be a cool addition too. Thanks, Jeff. Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com