forked from boostorg/fusion
merged fusion from the trunk
[SVN r63560]
This commit is contained in:
1 parent
649770fdcd
commit
1572e0e9c3
402 files changed
+4874
-5055
No files matched your search
@@ -31,7 +31,7 @@ namespace ns
|
||||
public:
|
||||
|
||||
point() : x(0), y(0) {}
|
||||
point(int x, int y) : x(x), y(y) {}
|
||||
point(int in_x, int in_y) : x(in_x), y(in_y) {}
|
||||
|
||||
int get_x() const { return x; }
|
||||
int get_y() const { return y; }
|
||||
@@ -98,14 +98,14 @@ main()
|
||||
{
|
||||
// conversion from ns::point to vector
|
||||
ns::point p(5, 3);
|
||||
boost::fusion::vector<int, short> v(p);
|
||||
boost::fusion::vector<int, long> v(p);
|
||||
v = p;
|
||||
}
|
||||
|
||||
{
|
||||
// conversion from ns::point to list
|
||||
ns::point p(5, 3);
|
||||
boost::fusion::list<int, short> l(p);
|
||||
boost::fusion::list<int, long> l(p);
|
||||
l = p;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user