Skip to content

Commit cd361a1

Browse files
committed
msgpack.cpp
1 parent c41ccd3 commit cd361a1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

section4/msgpack.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ void case3()
8080
cout << obj << endl;
8181
}
8282

83+
#if 0
84+
cout << "lambda " << endl;
85+
for(decltype(sbuf.size()) offset = 0;
86+
offset != sbuf.size();){
87+
88+
auto handle = msgpack::unpack(
89+
sbuf.data(), sbuf.size(), offset,
90+
91+
[](auto type, auto len, auto data)
92+
{
93+
cout << type << ":" << len << endl;
94+
return true;
95+
}
96+
97+
);
98+
}
99+
#endif
83100
}
84101

85102
int main()

0 commit comments

Comments
 (0)