diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-05-01 20:34:48 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-05-01 20:34:48 +0200 |
commit | 8258321a74f5b44a559c91bb0adb1358d22da801 (patch) | |
tree | 153d7f37e6629f0404a0da7b2110b25ea0a7dfdc /src/cache.hpp | |
parent | b2248a17ae24ba72618d80b98196221049cc3933 (diff) |
Now stores a shared_ptr to the Program class in the cache
Diffstat (limited to 'src/cache.hpp')
-rw-r--r-- | src/cache.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.hpp b/src/cache.hpp index 228fbccb..89973f61 100644 --- a/src/cache.hpp +++ b/src/cache.hpp @@ -83,10 +83,10 @@ extern template std::string BinaryCache::Get(const BinaryKeyRef &, bool *) const typedef std::tuple<RawContext, RawDeviceID, Precision, std::string> ProgramKey; typedef std::tuple<const RawContext &, const RawDeviceID &, const Precision &, const std::string &> ProgramKeyRef; -typedef Cache<ProgramKey, Program> ProgramCache; +typedef Cache<ProgramKey, std::shared_ptr<Program>> ProgramCache; -extern template class Cache<ProgramKey, Program>; -extern template Program ProgramCache::Get(const ProgramKeyRef &, bool *) const; +extern template class Cache<ProgramKey, std::shared_ptr<Program>>; +extern template std::shared_ptr<Program> ProgramCache::Get(const ProgramKeyRef &, bool *) const; // ================================================================================================= |