Boost logo

Boost Users :

Subject: [Boost-users] [interprocess] file_mapping/mapped_region on empty file throws?
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-11-29 13:05:18


The following appears to throw an interprocess_exception with
boost_1_44_0 compiled with MSVC8 running on windows XP.

   using namespace boost::interprocess;

   file_mapping fm("empty.txt", read_only);
   mapped_region mr( fm, read_only);

Is there a reason I can't just get back a null address and zero size?

I've wrapped this to get back a begin/end range and an empty range is a
valid condition.

Thanks, Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net