浏览代码

Added operator<<

Tatsuhiro Tsujikawa 18 年之前
父节点
当前提交
0f514b0db1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/AuthConfigItem.h

+ 3 - 0
src/AuthConfigItem.h

@@ -44,6 +44,7 @@ private:
   string _password;
 public:
 
+  AuthConfigItem() {}
   AuthConfigItem(const string& user, const string& password):
     _user(user), _password(password) {}
 
@@ -65,4 +66,6 @@ public:
 
 typedef SharedHandle<AuthConfigItem> AuthConfigItemHandle;
 
+ostream& operator<<(ostream& o, const AuthConfigItemHandle& authConfigItem);
+
 #endif // _D_AUTH_CONFIG_ITEM_H_