gcc4 compile fix, but C++ predicates are ugly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21579 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
896aa538d4
commit
c41c3f9bca
@ -40,12 +40,27 @@ using namespace std;
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
#if __GNUC__ > 3
|
||||
bool operator<(const node_ref& a, const node_ref& b);
|
||||
class node_ref_less : public binary_function<node_ref, node_ref, bool>
|
||||
{
|
||||
public:
|
||||
bool operator() (const node_ref& a, const node_ref& b) const
|
||||
{
|
||||
return a < b;
|
||||
}
|
||||
};
|
||||
typedef set<node_ref,node_ref_less> FileSet;
|
||||
#else
|
||||
typedef set<node_ref> FileSet;
|
||||
#endif
|
||||
|
||||
struct watched_directory {
|
||||
node_ref node;
|
||||
bool contained;
|
||||
};
|
||||
typedef set<watched_directory> DirectorySet;
|
||||
typedef set<node_ref> FileSet;
|
||||
|
||||
|
||||
class PathHandler;
|
||||
typedef map<BString, PathHandler*> HandlerMap;
|
||||
|
Loading…
Reference in New Issue
Block a user