mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core/Rpc: rpc++ now returns Null when no more values available
git-svn-id: svn://ultimatepp.org/upp/trunk@8025 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
75cc89b2d8
commit
782a62f875
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ struct RpcData {
|
|||
|
||||
int GetRemainingCount() const { return in.GetCount() - ii; }
|
||||
|
||||
Value Get() { if(ii >= in.GetCount()) throw ValueTypeMismatch(); return in[ii++]; }
|
||||
Value Get() { if(ii >= in.GetCount()) return Value(); return in[ii++]; }
|
||||
|
||||
template <class T>
|
||||
RpcData& operator>>(T& x) { ValueGet(x, Get()); return *this; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue