summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-29 17:57:19 (GMT)
committerBrad King <brad.king@kitware.com>2009-04-29 17:57:19 (GMT)
commitd91c5b1a07da38329a8572369c64d92571a3495b (patch)
treea9b1004a862a621d91f4180f5331e7ede5882120
parent222abaad5bb7ecb9bf3341f15d7a08eaaf44d906 (diff)
downloadCMake-d91c5b1a07da38329a8572369c64d92571a3495b.zip
CMake-d91c5b1a07da38329a8572369c64d92571a3495b.tar.gz
CMake-d91c5b1a07da38329a8572369c64d92571a3495b.tar.bz2
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.
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index e45cd07..001d1bb 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;