mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Changes and fixes for Boost 1.37
[SVN r49277]
This commit is contained in:
@@ -76,8 +76,21 @@ int test_expand_bwd()
|
||||
return 0;
|
||||
}
|
||||
|
||||
class recursive_vector
|
||||
{
|
||||
public:
|
||||
int id_;
|
||||
vector<recursive_vector> vector_;
|
||||
};
|
||||
|
||||
void recursive_vector_test()//Test for recursive types
|
||||
{
|
||||
vector<recursive_vector> recursive_vector_vector;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
recursive_vector_test();
|
||||
typedef allocator<int, managed_shared_memory::segment_manager> ShmemAllocator;
|
||||
typedef vector<int, ShmemAllocator> MyVector;
|
||||
|
||||
@@ -105,6 +118,11 @@ int main()
|
||||
if(test_expand_bwd())
|
||||
return 1;
|
||||
|
||||
const test::EmplaceOptions Options = (test::EmplaceOptions)(test::EMPLACE_BACK | test::EMPLACE_BEFORE);
|
||||
if(!boost::interprocess::test::test_emplace
|
||||
< vector<test::EmplaceInt>, Options>())
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user