summaryrefslogtreecommitdiff
path: root/src/database/database.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-04-10 07:40:27 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-04-10 07:40:27 +0200
commit2d45c37676d551f53095f7ffa2f178105f5930b2 (patch)
tree35188644456873d969ae67d49d5393f26aa31d03 /src/database/database.hpp
parent300531b869ca266c22d4580761872a4ebb6a244b (diff)
Removed const-vector-of-const-objects from the database class to remain according to the C++11 standard
Diffstat (limited to 'src/database/database.hpp')
-rw-r--r--src/database/database.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp
index e49146c5..82fbc252 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -70,16 +70,16 @@ class Database {
static const std::unordered_map<std::string, std::string> kVendorNames;
// The database consists of separate database entries, stored together in a vector
- static const std::vector<const DatabaseEntry*> database;
+ static const std::vector<DatabaseEntry> database;
// Database for a special case: Apple CPUs support limited number of threads
- static const std::vector<const DatabaseEntry*> apple_cpu_fallback;
+ static const std::vector<DatabaseEntry> apple_cpu_fallback;
Database() = default;
// The constructor with a user-provided database overlay (potentially an empty vector)
explicit Database(const Device &device, const std::string &kernel_name,
- const Precision precision, const std::vector<const DatabaseEntry*> &overlay);
+ const Precision precision, const std::vector<DatabaseEntry> &overlay);
// Accessor of values by key
size_t operator[](const std::string &key) const { return parameters_->find(key)->second; }
@@ -96,7 +96,7 @@ class Database {
ParametersPtr Search(const std::string &this_kernel, const std::string &this_type,
const std::string &this_vendor, const std::string &this_device,
const Precision this_precision,
- const std::vector<const DatabaseEntry*> &db) const;
+ const std::vector<DatabaseEntry> &db) const;
// Found parameters suitable for this device/kernel
std::shared_ptr<Parameters> parameters_;