Skip to content

assigned on moved subarray should move values

	{
		multi::array<std::vector<int>, 3> A1 = {
			{
				{std::vector<int>(1), std::vector<int>(2)},
				{std::vector<int>(3), std::vector<int>(4)}
			},
			{
				{std::vector<int>(5), std::vector<int>(6)},
				{std::vector<int>(7), std::vector<int>(8)}
			},
		};

		auto&& R1 = A1[1];
		R1 = A1[0].move();

		BOOST_TEST( A1[1][0][0] == std::vector<int>(1) );
		// BOOST_TEST( A1[0][0][0].empty() );  // TODO(correaa) make moved elements work
	}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information