summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/util
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2014-02-18 15:07:11 +0100
committerFrancisco Jerez <[email protected]>2014-02-21 12:51:22 +0100
commitc4578d2277155c50c8680849763850cddb8e8ec2 (patch)
treea9d8af3300fdeea1be94be80874fa8e918077405 /src/gallium/state_trackers/clover/util
parentd82b39ce382e035b946b3f961c7afd356f55f4f0 (diff)
clover: Migrate a bunch of pointers and references in the object tree to smart references.
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/util')
-rw-r--r--src/gallium/state_trackers/clover/util/functional.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/util/functional.hpp b/src/gallium/state_trackers/clover/util/functional.hpp
index 2d8c4c44131..fb2877aaa37 100644
--- a/src/gallium/state_trackers/clover/util/functional.hpp
+++ b/src/gallium/state_trackers/clover/util/functional.hpp
@@ -202,6 +202,14 @@ namespace clover {
}
};
+ struct evals {
+ template<typename T>
+ auto
+ operator()(T &&x) const -> decltype(x()) {
+ return x();
+ }
+ };
+
struct derefs {
template<typename T>
auto