g++ is picky about default params with overloading

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-01-14 17:26:04 +00:00
parent 3446072b3e
commit 16e251d74a
2 changed files with 10 additions and 2 deletions

View File

@ -13,5 +13,7 @@
#include "inspircd_config.h"
bool match(const char *str, const char *mask, bool use_cidr_match = false);
bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match = false);
bool match(const char *str, const char *mask);
bool match(const char *str, const char *mask, bool use_cidr_match);
bool match(bool case_sensitive, const char *str, const char *mask);
bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match);

View File

@ -140,3 +140,9 @@ bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr
return true;
return csmatch(str, mask);
}
bool match(bool case_sensitive, const char *str, const char *mask)
{
return case_sensitive ? csmatch(str, mask) : match(str, mask);
}