EdB <edb+m...@sigluy.net> writes:

> add a simple compat::pair
> ---
>  src/gallium/state_trackers/clover/util/compat.hpp | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/gallium/state_trackers/clover/util/compat.hpp 
> b/src/gallium/state_trackers/clover/util/compat.hpp
> index 50e1c7d..c5d1b39 100644
> --- a/src/gallium/state_trackers/clover/util/compat.hpp
> +++ b/src/gallium/state_trackers/clover/util/compat.hpp
> @@ -295,6 +295,12 @@ namespace clover {
>           }
>        };
>  
> +      template<class T1, class T2 = T1>

Can we remove the default template parameter to match STL more closely?

> +      struct pair {
> +         T1 first;
> +         T2 second;
> +      };
> +
>        template<typename T>
>        bool
>        operator==(const vector_ref<T> &a, const vector_ref<T> &b) {
> -- 
> 2.0.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Attachment: pgpVjX1Ysk7Kg.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to