mirror of
https://github.com/boostorg/function.git
synced 2026-01-25 08:22:22 +01:00
untabified
[SVN r12336]
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <boost/function.hpp>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user