Hi Jeff,

Thank you, i'll check all the possibilities, Boost has many. :-)

Regards,
Júlio.

2011/4/2 Jeff Flinn <TriumphSprint2000@hotmail.com>
Júlio Hoffimann wrote:
Hi Eric,

Thank you for the perfect answer! Could you please guide me with some classes/methods names in libraries you told?

For memory-map the file with Boost.Interprocess, what is the class you have in mind? I found basic_managed_mapped_file but how can i use it with Boost.Xpressive regex_replace() function?

http://www.boost.org/doc/libs/1_46_1/doc/html/interprocess/managed_memory_segments.html#interprocess.managed_memory_segments.managed_mapped_files

You need a boost::interprocess::file_mapping and a boost::interprocess::mapped_region. The example at your link above should be enough to get you going.

I've found boost::iostreams::mapped_file[_source/_sink] to be a little more straightforward, and it directly supports using boost::filesystem::paths. See:

http://www.boost.org/doc/libs/1_45_0/libs/iostreams/doc/classes/mapped_file.html

Jeff


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users