Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:22:03 PM (9 years ago)
Author:
landauf
Message:

use actual types instead of 'auto'. only exception is for complicated template types, e.g. when iterating over a map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h

    r10845 r10916  
    130130
    131131                this->value_ = V();
    132                 for (auto & elem : defvalue)
    133                     this->valueVector_.push_back(MultiType(elem));
     132                for (const D& defvalueElement : defvalue)
     133                    this->valueVector_.push_back(MultiType(defvalueElement));
    134134
    135135                this->initVector();
     
    183183                    std::vector<T> temp = *value;
    184184                    value->clear();
    185                     for (auto & elem : this->valueVector_)
    186                         value->push_back(elem);
     185                    for (const MultiType& vectorEntry : this->valueVector_)
     186                        value->push_back(vectorEntry);
    187187
    188188                    if (value->size() != temp.size())
     
    211211                {
    212212                    value->clear();
    213                     for (auto & elem : this->valueVector_)
    214                         value->push_back(elem);
     213                    for (const MultiType& vectorEntry : this->valueVector_)
     214                        value->push_back(vectorEntry);
    215215                }
    216216                return *this;
Note: See TracChangeset for help on using the changeset viewer.