X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fserver.h;h=d86ad39a31ebc3af10bf9d18fc04e3176eabf826;hb=28adf7b936c6f5c25b7526ff56ec1256da1246d4;hp=2f666f49a044cbb2f07c66925bb271402ef52283;hpb=c4dbc7e56b01545e25bc95ba122c79d4a2631a99;p=awesomized%2Flibmemcached diff --git a/libmemcached/options/server.h b/libmemcached/options/server.h index 2f666f49..d86ad39a 100644 --- a/libmemcached/options/server.h +++ b/libmemcached/options/server.h @@ -38,21 +38,23 @@ #pragma once #include -#include #include struct server_t { in_port_t port; uint32_t weight; - size_t length; const char *c_str; + size_t size; }; +#if 0 +#include inline std::ostream& operator<<(std::ostream& output, const server_t& arg) { - output.write(arg.c_str, arg.length); + output.write(arg.c_str, arg.size); output << ':' << arg.port; output << '+' << arg.weight; return output; } +#endif