So, I was about to replace Boost in my project and since I'm using boost::iostreams::mapped_file_source I stumpled across mio. Sadly, the non-copyable nature of mio causes plenty of hard to find compilation errors regarding object copying. Is that restriction really necessary? Boost gets along without this restriction just fine.
Would you suggest using std::move() everywhere or maybe wrapping mio::mmap_source into a std::shared_ptr when migrating?
So, I was about to replace
Boost
in my project and since I'm usingboost::iostreams::mapped_file_source
I stumpled acrossmio
. Sadly, the non-copyable nature ofmio
causes plenty of hard to find compilation errors regarding object copying. Is that restriction really necessary?Boost
gets along without this restriction just fine.Would you suggest using
std::move()
everywhere or maybe wrappingmio::mmap_source
into astd::shared_ptr
when migrating?