Skip to content
  • Mark OLESEN's avatar
    89e12df4
    COMP: resolve label-size=64 ambiguities for clang · 89e12df4
    Mark OLESEN authored
    * DynList construction with integer parameter:
    
        DynList<T>(int32_t) - eg DynList<T> lst(10)
    
      Candidates are
    
         DynList(const label)
         template<class ListType> DynList(const ListType& lst)
    
      It picks the second as the beter match (error).
    
      Resolve by adding DynList(int32_t) constructor for label-size=64
    
    * Similar problem with copy assignment.
         dyList = -1 (for example) picks
         template<class ListType> operator=(const ListType& lst)
    
      Resolve by replacing general list assignment with assignments for
      DynList, UList, FixedList
    89e12df4
    COMP: resolve label-size=64 ambiguities for clang
    Mark OLESEN authored
    * DynList construction with integer parameter:
    
        DynList<T>(int32_t) - eg DynList<T> lst(10)
    
      Candidates are
    
         DynList(const label)
         template<class ListType> DynList(const ListType& lst)
    
      It picks the second as the beter match (error).
    
      Resolve by adding DynList(int32_t) constructor for label-size=64
    
    * Similar problem with copy assignment.
         dyList = -1 (for example) picks
         template<class ListType> operator=(const ListType& lst)
    
      Resolve by replacing general list assignment with assignments for
      DynList, UList, FixedList
Loading