COMP: Fix nested class member access

Nested classes have no special access to other members of their
enclosing class.  In cmFileCopier the nested class MatchRule must use
MatchProperties, so we grant friendship to it.
This commit is contained in:
Brad King 2009-04-29 13:57:19 -04:00
parent 222abaad5b
commit d91c5b1a07
1 changed files with 2 additions and 0 deletions

View File

@ -947,6 +947,8 @@ protected:
mode_t Permissions;
MatchProperties(): Exclude(false), Permissions(0) {}
};
struct MatchRule;
friend struct MatchRule;
struct MatchRule
{
cmsys::RegularExpression Regex;