diff --git a/test/mixin_test.cpp b/test/mixin_test.cpp index f823323..61c7200 100644 --- a/test/mixin_test.cpp +++ b/test/mixin_test.cpp @@ -20,7 +20,7 @@ #include struct id_mixin -{ +{ id_mixin(const id_mixin& rhs) : id(rhs.id) {} id_mixin& operator=(const id_mixin& rhs){id = rhs.id; return *this;} id_mixin(int i = 0){ id = i;} @@ -49,12 +49,12 @@ int test_main(int, char*[]) f.id = 21; BOOST_TEST(f.id == 21); - + boost::swap(f,g); BOOST_TEST(f.id == 7); BOOST_TEST(g.id == 21); - g = f; + g = f; BOOST_TEST(g.id == 7); return 0; }