Correct call to init_list in make_shared and allocate_shared. Move g++ failing case into separate test to not mask other issues.

[SVN r81905]
This commit is contained in:
Glen Fernandes
2012-12-13 18:02:25 +00:00
parent 1c070b3a32
commit e36689bd5e
7 changed files with 52 additions and 18 deletions

View File

@@ -72,13 +72,6 @@ int main() {
BOOST_TEST(a1[2] == 2);
BOOST_TEST(a1[3] == 3);
}
{
boost::shared_ptr<int[][2]> a1 = boost::make_shared<int[][2]>({ {0, 1}, {2, 3} });
BOOST_TEST(a1[0][0] == 0);
BOOST_TEST(a1[0][1] == 1);
BOOST_TEST(a1[1][0] == 2);
BOOST_TEST(a1[1][1] == 3);
}
#endif
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
{