Add C++11 initializer list support for make_shared and allocate_shared array forms.

[SVN r81257]
This commit is contained in:
Glen Fernandes committed 2012-11-09 06:17:05 +00:00
1 parent aa7562c3e5
commit 3d50db11b9
6 files changed
+102

No files matched your search

@@ -37,6 +37,14 @@ namespace boost {
::new(p1) T(args...);
}
}
#endif
#if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
void construct(T* memory, std::size_t count, const T* list) {
for (object = memory; size < count; size++) {
void* p1 = object + size;
::new(p1) T(list[size]);
}
}
#endif
void construct_noinit(T* memory, std::size_t count) {
for (object = memory; size < count; size++) {