summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroup.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-16 20:56:41 (GMT)
committerBrad King <brad.king@kitware.com>2008-05-16 20:56:41 (GMT)
commit10db44a81d7be2ebd93c7fb1b70883d62c421723 (patch)
treeddb8cae9ff9eb79733d7eb54b5fc8b1d637e0903 /Source/cmSourceGroup.h
parentf43748e1dd656a4b9c5f2d59ece64618a51efba5 (diff)
downloadCMake-10db44a81d7be2ebd93c7fb1b70883d62c421723.zip
CMake-10db44a81d7be2ebd93c7fb1b70883d62c421723.tar.gz
CMake-10db44a81d7be2ebd93c7fb1b70883d62c421723.tar.bz2
COMP: Fix build with concept checking of STL.
- Fix cmSourceGroup to not use std::vector with an incomplete type.
Diffstat (limited to 'Source/cmSourceGroup.h')
-rw-r--r--Source/cmSourceGroup.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmSourceGroup.h b/Source/cmSourceGroup.h
index e48fa10..1e64bc1 100644
--- a/Source/cmSourceGroup.h
+++ b/Source/cmSourceGroup.h
@@ -22,6 +22,8 @@
class cmSourceFile;
+class cmSourceGroupInternals;
+
/** \class cmSourceGroup
* \brief Hold a group of sources as specified by a SOURCE_GROUP command.
*
@@ -36,7 +38,9 @@ class cmSourceGroup
{
public:
cmSourceGroup(const char* name, const char* regex);
- ~cmSourceGroup() {}
+ cmSourceGroup(cmSourceGroup const& r);
+ ~cmSourceGroup();
+ cmSourceGroup& operator=(cmSourceGroup const&);
/**
* Set the regular expression for this group.
@@ -97,7 +101,7 @@ public:
const std::vector<const cmSourceFile*>& GetSourceFiles() const;
std::vector<const cmSourceFile*>& GetSourceFiles();
- std::vector<cmSourceGroup> GetGroupChildren() const;
+ std::vector<cmSourceGroup> const& GetGroupChildren() const;
private:
/**
* The name of the source group.
@@ -120,7 +124,7 @@ private:
*/
std::vector<const cmSourceFile*> SourceFiles;
- std::vector<cmSourceGroup> GroupChildren;
+ cmSourceGroupInternals* Internal;
};
#endif