1 |
|
---|
2 | #include <boost/tuple/tuple.hpp>
|
---|
3 | #include <boost/tuple/tuple_io.hpp>
|
---|
4 | #include <boost/lexical_cast.hpp>
|
---|
5 | #include <string>
|
---|
6 |
|
---|
7 | int main()
|
---|
8 | {
|
---|
9 | typedef boost::tuple<int,int> point;
|
---|
10 | std::string s = "(1 2)";
|
---|
11 | point p = boost::lexical_cast<point>(s);
|
---|
12 | return 0;
|
---|
13 | }
|
---|
14 |
|
---|