Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2015, 11:11:00 AM (9 years ago)
Author:
landauf
Message:

using std::array instead of boost::array

Location:
code/branches/cpp11_v2/src/libraries/core/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileManager.cc

    r10768 r10776  
    4747    ConfigFileManager::ConfigFileManager()
    4848    {
    49         this->configFiles_.assign(nullptr);
     49        this->configFiles_.fill(nullptr);
    5050    }
    5151
     
    5353    ConfigFileManager::~ConfigFileManager()
    5454    {
    55         for (boost::array<ConfigFile*, 3>::const_iterator it = this->configFiles_.begin(); it != this->configFiles_.end(); ++it)
     55        for (std::array<ConfigFile*, 3>::const_iterator it = this->configFiles_.begin(); it != this->configFiles_.end(); ++it)
    5656            if (*it)
    5757                delete (*it);
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileManager.h

    r9559 r10776  
    3838#include "core/CorePrereqs.h"
    3939
    40 #include <boost/array.hpp>
     40#include <array>
    4141
    4242#include "util/Singleton.h"
     
    6969            ConfigFileManager(const ConfigFileManager&);    ///< Copy-constructor: not implemented
    7070
    71             boost::array<ConfigFile*, 3> configFiles_;      ///< Stores the config files for each type in an array (must have the same size like ConfigFileType::Value)
     71            std::array<ConfigFile*, 3> configFiles_;        ///< Stores the config files for each type in an array (must have the same size like ConfigFileType::Value)
    7272            static ConfigFileManager* singletonPtr_s;       ///< Stores the singleton-pointer
    7373    };
Note: See TracChangeset for help on using the changeset viewer.