mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
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:
@@ -947,6 +947,8 @@ protected:
|
||||
mode_t Permissions;
|
||||
MatchProperties(): Exclude(false), Permissions(0) {}
|
||||
};
|
||||
struct MatchRule;
|
||||
friend struct MatchRule;
|
||||
struct MatchRule
|
||||
{
|
||||
cmsys::RegularExpression Regex;
|
||||
|
||||
Reference in New Issue
Block a user