From eeb131bc83e54be59aa285a21bc231c7aca8eed6 Mon Sep 17 00:00:00 2001 From: freezestudio Date: Sun, 10 Jul 2016 08:42:31 +0800 Subject: [PATCH] Update QuickSort.cpp --- QuickSort.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QuickSort.cpp b/QuickSort.cpp index eefa00b..156dd8d 100644 --- a/QuickSort.cpp +++ b/QuickSort.cpp @@ -78,6 +78,7 @@ void StaticTest() typedef to_int_types<1, 2, 3>::type lst_1_3; typedef to_int_types<3, 2, 1>::type lst_3_1; typedef to_int_types<3, 7, 1, 6, 5, 22, 5>::type lst; + typedef to_int_types<1, 3, 5, 5, 6, 7, 22>::type sorted_lst; typedef integral_constant::type i1; typedef integral_constant::type i2; @@ -101,4 +102,5 @@ void StaticTest() static_assert(is_same::type, lst_1_3>::value, ""); static_assert(is_same >::type, tuple<>>::value, ""); static_assert(is_same>::type, tuple>::value, ""); -} \ No newline at end of file + static_assert(is_same::type, sorted_lst>::value, ""); +}