Commit 532ed620 by Xin Li Committed by Tianqi Chen

Handle empty tuple (#95)

parent 3ae81914
......@@ -233,6 +233,15 @@ class Tuple {
return is;
}
}
// Handle empty tuple
while (isspace(is.peek())) {
is.get();
}
if (is.peek() == ')') {
is.get();
return is;
}
// Handle non-empty tuple
ValueType idx;
std::vector<ValueType> tmp;
while (is >> idx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment