From d82b39ce382e035b946b3f961c7afd356f55f4f0 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 18 Feb 2014 14:52:25 +0100 Subject: [PATCH] clover: Allow storing a range into a container of different (but compatible) element type. Tested-by: Tom Stellard --- src/gallium/state_trackers/clover/util/range.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/clover/util/range.hpp b/src/gallium/state_trackers/clover/util/range.hpp index afa5f7730bf..b082359ee86 100644 --- a/src/gallium/state_trackers/clover/util/range.hpp +++ b/src/gallium/state_trackers/clover/util/range.hpp @@ -38,25 +38,25 @@ namespace clover { template struct range_store_traits; - template - struct range_store_traits> { + template + struct range_store_traits> { typedef void enable; template - static std::vector + static std::vector create(const R &r) { return { r.begin(), r.end() }; } }; - template - struct range_store_traits> { + template + struct range_store_traits> { typedef void enable; template - static std::array + static std::array create(const R &r) { - std::array v; + std::array v; assert(r.size() == v.size()); copy(r, v.begin()); return v; -- 2.30.2