Ticket #2839: variant-test.cpp
| File variant-test.cpp, 308 bytes (added by , 14 years ago) |
|---|
| Line | |
|---|---|
| 1 | #pragma warning(disable:4345) |
| 2 | #include <vector> |
| 3 | #include <boost/blank.hpp> |
| 4 | #include <boost/variant/variant.hpp> |
| 5 | |
| 6 | int main(int, char **) |
| 7 | { |
| 8 | typedef boost::variant< boost::blank, int, std::vector<int>* > thetype; |
| 9 | thetype x, y; |
| 10 | x = new std::vector<int>(); |
| 11 | x.swap(y); |
| 12 | return 0; |
| 13 | } |
