fix trac issue #1608

[SVN r53914]
This commit is contained in:
Joel de Guzman
2009-06-15 01:53:43 +00:00
parent 8f34038ddd
commit 363ff5750f
7 changed files with 13 additions and 8 deletions

5
changelist.txt Normal file
View File

@ -0,0 +1,5 @@
Interface Changes
- June 12, 2009: vector0 is now vector0<> as per Boost Trac Ticket #1608
to follow MPL more closely.

View File

@ -340,7 +340,7 @@ void result_type_tests()
using boost::is_same; using boost::is_same;
BOOST_TEST(( is_same< BOOST_TEST(( is_same<
fusion::result_of::invoke<int (*)(), fusion::vector0 >::type, int fusion::result_of::invoke<int (*)(), fusion::vector0<> >::type, int
>::value )); >::value ));
// disabled until boost::result_of supports it // disabled until boost::result_of supports it
// BOOST_TEST(( is_same< // BOOST_TEST(( is_same<

View File

@ -26,7 +26,7 @@ main()
std::cout << tuple_delimiter(", "); std::cout << tuple_delimiter(", ");
{ {
vector0 empty; vector0<> empty;
std::cout << as_list(make_vector(1, 1.23, "harru")) << std::endl; std::cout << as_list(make_vector(1, 1.23, "harru")) << std::endl;
std::cout << as_list(push_back(empty, 999)) << std::endl; std::cout << as_list(push_back(empty, 999)) << std::endl;

View File

@ -28,7 +28,7 @@ main()
std::cout << tuple_delimiter(", "); std::cout << tuple_delimiter(", ");
{ {
vector0 empty; vector0<> empty;
std::cout << as_map(make_list(make_pair<int>('X'), make_pair<double>("Men"))) << std::endl; std::cout << as_map(make_list(make_pair<int>('X'), make_pair<double>("Men"))) << std::endl;
std::cout << as_map(push_back(empty, make_pair<int>(999))) << std::endl; std::cout << as_map(push_back(empty, make_pair<int>(999))) << std::endl;
} }

View File

@ -29,7 +29,7 @@ main()
std::cout << tuple_delimiter(", "); std::cout << tuple_delimiter(", ");
{ {
vector0 empty; vector0<> empty;
std::cout << as_set(make_list(1, 1.23, "harru")) << std::endl; std::cout << as_set(make_list(1, 1.23, "harru")) << std::endl;
std::cout << as_set(push_back(empty, 999)) << std::endl; std::cout << as_set(push_back(empty, 999)) << std::endl;

View File

@ -27,7 +27,7 @@ main()
std::cout << tuple_delimiter(", "); std::cout << tuple_delimiter(", ");
{ {
vector0 empty; vector0<> empty;
std::cout << as_vector(make_list(1, 1.23, "harru")) << std::endl; std::cout << as_vector(make_list(1, 1.23, "harru")) << std::endl;
std::cout << as_vector(push_back(empty, 999)) << std::endl; std::cout << as_vector(push_back(empty, 999)) << std::endl;

View File

@ -33,10 +33,10 @@ main()
using namespace std; using namespace std;
{ {
vector0 vec; vector0<> vec;
(void) vec; (void) vec;
cout << "(): " << sizeof(vec) << endl; cout << "(): " << sizeof(vec) << endl;
cout << (boost::is_empty<vector0>::value ? "is empty" : "is not empty") << endl; cout << (boost::is_empty<vector0<> >::value ? "is empty" : "is not empty") << endl;
} }
{ {
@ -207,7 +207,7 @@ main()
{ {
// testing copy and assign from a view // testing copy and assign from a view
vector0 empty; vector0<> empty;
fusion::vector2<int, long> v(fusion::push_back(fusion::push_back(empty, 123), 456)); fusion::vector2<int, long> v(fusion::push_back(fusion::push_back(empty, 123), 456));
BOOST_TEST(at_c<0>(v) == 123); BOOST_TEST(at_c<0>(v) == 123);
BOOST_TEST(at_c<1>(v) == 456); BOOST_TEST(at_c<1>(v) == 456);