Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <boost/any.hpp>
- using namespace boost;
- class Big
- {
- public:
- Big() { };
- Big(const Big&rhs) { d = rhs.d; cout<<"In Big copy constructor"<<endl; }
- double d;
- };
- int main()
- {
- Big b1, b2;
- any a1 = b1, a2 = b2;
- cout<<"------------------------"<<endl;
- std::swap(a1,a2);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement