Make GrowableArray capacity management work without default constructor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: hotspot

      GrowableArray assumes that all data has a default ctr, see line 491:

        for ( ; i < this->_capacity; i++) ::new ((void*)&newData[i]) E();

      This is an unnecessary limitation which you hit when you try to limit your data structure to valid states.

            Assignee:
            Unassigned
            Reporter:
            Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: