diff options
author | Brad King <brad.king@kitware.com> | 2009-04-29 13:57:19 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-29 13:57:19 -0400 |
commit | d91c5b1a07da38329a8572369c64d92571a3495b (patch) | |
tree | a9b1004a862a621d91f4180f5331e7ede5882120 /Source/cmFileCommand.cxx | |
parent | 222abaad5bb7ecb9bf3341f15d7a08eaaf44d906 (diff) | |
download | cmake-d91c5b1a07da38329a8572369c64d92571a3495b.tar.gz |
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.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index e45cd07510..001d1bb32c 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -947,6 +947,8 @@ protected: mode_t Permissions; MatchProperties(): Exclude(false), Permissions(0) {} }; + struct MatchRule; + friend struct MatchRule; struct MatchRule { cmsys::RegularExpression Regex; |