mirror of
https://github.com/boostorg/move.git
synced 2025-07-29 20:07:13 +02:00
Updated documentation and tests to Boost.Container
[SVN r74156]
This commit is contained in:
@ -56,7 +56,7 @@ class file_descriptor
|
||||
//]
|
||||
|
||||
//[file_descriptor_example
|
||||
#include <boost/interprocess/containers/vector.hpp>
|
||||
#include <boost/container/vector.hpp>
|
||||
#include <cassert>
|
||||
|
||||
//Remember: 'file_descriptor' is NOT copyable, but it
|
||||
@ -72,7 +72,7 @@ int main()
|
||||
assert(!fd.empty());
|
||||
|
||||
//Now move fd into a vector
|
||||
boost::interprocess::vector<file_descriptor> v;
|
||||
boost::container::vector<file_descriptor> v;
|
||||
v.push_back(boost::move(fd));
|
||||
|
||||
//Check ownership has been transferred
|
||||
@ -81,7 +81,7 @@ int main()
|
||||
|
||||
//Compilation error if uncommented since file_descriptor is not copyable
|
||||
//and vector copy construction requires value_type's copy constructor:
|
||||
//boost::interprocess::vector<file_descriptor> v2(v);
|
||||
//boost::container::vector<file_descriptor> v2(v);
|
||||
return 0;
|
||||
}
|
||||
//]
|
||||
|
Reference in New Issue
Block a user