diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 01:03:05 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 01:03:05 +0800 |
commit | a205f3f2040f06618beb2a97fb26f844c2e78e80 (patch) | |
tree | 9901e3389fd1185a91184dfd45408f0fd8b1f997 | |
parent | 6c7f15c0935b1b96ab911954360829afb77e2e43 (diff) | |
download | pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar.gz pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar.bz2 pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar.lz pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar.xz pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.tar.zst pttbbs-a205f3f2040f06618beb2a97fb26f844c2e78e80.zip |
make g++4 happy. thanks scw.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3289 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | cacheserver/friend.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cacheserver/friend.cpp b/cacheserver/friend.cpp index 4f8e9663..a3110ea7 100644 --- a/cacheserver/friend.cpp +++ b/cacheserver/friend.cpp @@ -150,7 +150,7 @@ struct RelationList: public myvector<Relation, 8, short> { } clear(); } - public: + private: void setbackoffset(short which,short offset) { assert(0<=which && which<n); base[which].him_offset=offset; @@ -163,9 +163,7 @@ struct RelationList: public myvector<Relation, 8, short> { } pop_back(); } - friend void RelationList<B,R>::add(Uid me, Uid him); - friend void RelationList<B,R>::deleteall(Uid me); - friend void RelationList<B,R>::delete_half(short offset); + friend class RelationList<B,R>; }; struct Like; |