From: Francisco Jerez Date: Tue, 18 Feb 2014 13:52:25 +0000 (+0100) Subject: clover: Allow storing a range into a container of different (but compatible) element... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d82b39ce382e035b946b3f961c7afd356f55f4f0;p=mesa.git clover: Allow storing a range into a container of different (but compatible) element type. Tested-by: Tom Stellard --- 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;