diff --git a/README.md b/README.md index 3089960..65b0fc7 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,7 @@ int main() const int the_answer_to_everything = ro_mmap[answer_index]; assert(the_answer_to_everything == 42); } +``` `mio::basic_mmap` is move-only, but if multiple copies to the same mapping are needed, use `mio::basic_shared_mmap` which has `std::shared_ptr` semantics and has the same interface as `mio::basic_mmap`. ```c++