Fixed size types based on snej's pull request.

1784e7a3f3
This commit is contained in:
Takatoshi Kondo
2013-12-22 15:13:48 +00:00
parent bf7fece440
commit cb4d851761
7 changed files with 19 additions and 19 deletions

View File

@@ -17,7 +17,7 @@ namespace myprotocol {
struct Put : define< tuple<uint32_t, std::string, raw_ref> > {
Put() { }
Put(uint32_t f, const std::string& k, const char* valref, size_t vallen) :
Put(uint32_t f, const std::string& k, const char* valref, uint32_t vallen) :
define_type(msgpack_type( f, k, raw_ref(valref,vallen) )) { }
uint32_t& flags() { return get<0>(); }
std::string& key() { return get<1>(); }