Repository: mesos Updated Branches: refs/heads/master 51a3bd95b -> ab519aaa6
Fixed the order of parameters of `is_specialization_of` in stout. Given `std::is_base_of<T, U>`, the interpretation of the question is: "is `T` base of `U`?". Similarly, in this case want to ask the question "is some type a specialization of a template?" As such, the order of template paramters should be `is_specialization_of<Type, Template>`. Review: https://reviews.apache.org/r/65054 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3b0d1fa2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3b0d1fa2 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3b0d1fa2 Branch: refs/heads/master Commit: 3b0d1fa2b652047af19471ead5eb228675427484 Parents: 51a3bd9 Author: Michael Park <[email protected]> Authored: Fri Jan 5 10:36:25 2018 -0800 Committer: Michael Park <[email protected]> Committed: Wed Jan 10 09:14:04 2018 -0800 ---------------------------------------------------------------------- 3rdparty/stout/include/stout/traits.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/3b0d1fa2/3rdparty/stout/include/stout/traits.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/stout/include/stout/traits.hpp b/3rdparty/stout/include/stout/traits.hpp index 5dea084..270954e 100644 --- a/3rdparty/stout/include/stout/traits.hpp +++ b/3rdparty/stout/include/stout/traits.hpp @@ -13,11 +13,11 @@ #ifndef __STOUT_TRAITS_HPP__ #define __STOUT_TRAITS_HPP__ -template <template <typename...> class T, typename U> +template <typename T, template <typename...> class C> struct is_specialization_of : std::false_type {}; -template <template <typename...> class T, typename... Args> -struct is_specialization_of<T, T<Args...>> : std::true_type {}; +template <template <typename...> class C, typename... Args> +struct is_specialization_of<C<Args...>, C> : std::true_type {}; // Lambda (or functor) traits.
