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:
@@ -40,12 +40,27 @@ using namespace std;
|
|||||||
|
|
||||||
namespace BPrivate {
|
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 {
|
struct watched_directory {
|
||||||
node_ref node;
|
node_ref node;
|
||||||
bool contained;
|
bool contained;
|
||||||
};
|
};
|
||||||
typedef set<watched_directory> DirectorySet;
|
typedef set<watched_directory> DirectorySet;
|
||||||
typedef set<node_ref> FileSet;
|
|
||||||
|
|
||||||
class PathHandler;
|
class PathHandler;
|
||||||
typedef map<BString, PathHandler*> HandlerMap;
|
typedef map<BString, PathHandler*> HandlerMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user