瀏覽代碼

ERR: ElementCombinationGenerator::ReplacePortion needs to be a friend of ElementCombinationGenerator so that it can get access to ElementCombinationGenerator::Substitution. Also fixed one minor problem for HP build.

Brad King 24 年之前
父節點
當前提交
489e91a1f7
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmCableClassSet.cxx

+ 3 - 1
Source/cmCableClassSet.cxx

@@ -228,6 +228,8 @@ private:
    * Represent the "$SomeSetName" portion of an input string.  This has a
    * Represent the "$SomeSetName" portion of an input string.  This has a
    * reference to the Substitution holding the real output to generate.
    * reference to the Substitution holding the real output to generate.
    */
    */
+  class ReplacePortion;
+  friend class ReplacePortion;
   class ReplacePortion: public Portion
   class ReplacePortion: public Portion
   {
   {
   public:
   public:
@@ -364,7 +366,7 @@ ElementCombinationGenerator
     
     
     // Put together all the pieces, with substitutions.
     // Put together all the pieces, with substitutions.
     for(Portions::const_iterator i = m_Portions.begin();
     for(Portions::const_iterator i = m_Portions.begin();
-        i != m_Portions.end(); ++i)
+        i != Portions::const_iterator(m_Portions.end()); ++i)
       {
       {
       // See if there is a class associated with this portion.
       // See if there is a class associated with this portion.
       const cmCableClass* curClassPortion = (*i)->GetClass();
       const cmCableClass* curClassPortion = (*i)->GetClass();