From d12cab546caa61403f5c8c32c8e9bda7105f7b54 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sun, 4 Sep 2011 00:07:53 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=91=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sprout/algorithm/fit/result_of.hpp | 1 + sprout/algorithm/fixed/generate.hpp | 6 +-- sprout/algorithm/fixed/stable_sort.hpp | 2 +- sprout/string.hpp | 64 +------------------------- 4 files changed, 6 insertions(+), 67 deletions(-) diff --git a/sprout/algorithm/fit/result_of.hpp b/sprout/algorithm/fit/result_of.hpp index 23461747..b54a3d02 100644 --- a/sprout/algorithm/fit/result_of.hpp +++ b/sprout/algorithm/fit/result_of.hpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace sprout { namespace fit { diff --git a/sprout/algorithm/fixed/generate.hpp b/sprout/algorithm/fixed/generate.hpp index ce1c9bc2..a1bda5f5 100644 --- a/sprout/algorithm/fixed/generate.hpp +++ b/sprout/algorithm/fixed/generate.hpp @@ -44,7 +44,7 @@ namespace sprout { Args const&... args ) { - return sprout::remake_clone(cont, sprout::size(result), args...); + return sprout::remake_clone(cont, sprout::size(cont), args...); } template SPROUT_CONSTEXPR inline typename std::enable_if< @@ -68,7 +68,7 @@ namespace sprout { Args const&... args ) { - return sprout::remake_clone(cont, sprout::size(result), args...); + return sprout::remake_clone(cont, sprout::size(cont), args...); } template SPROUT_CONSTEXPR inline typename std::enable_if< @@ -97,7 +97,7 @@ namespace sprout { Args const&... args ) { - return sprout::remake_clone(cont, sprout::size(result), args...); + return sprout::remake_clone(cont, sprout::size(cont), args...); } template SPROUT_CONSTEXPR inline typename std::enable_if< diff --git a/sprout/algorithm/fixed/stable_sort.hpp b/sprout/algorithm/fixed/stable_sort.hpp index fc595f67..8c9243d3 100644 --- a/sprout/algorithm/fixed/stable_sort.hpp +++ b/sprout/algorithm/fixed/stable_sort.hpp @@ -31,7 +31,7 @@ namespace sprout { sprout::index_tuple ) { - return sprout::remake_clone(result, sprout::size(result), (*(sprout::fixed_begin(cont) + Indexes))...); + return sprout::remake_clone(cont, sprout::size(cont), (*(sprout::fixed_begin(cont) + Indexes))...); } template SPROUT_CONSTEXPR inline typename std::enable_if< diff --git a/sprout/string.hpp b/sprout/string.hpp index 2203f73a..72829ee5 100644 --- a/sprout/string.hpp +++ b/sprout/string.hpp @@ -10,12 +10,10 @@ #include #include #include -#include #include #include #include #include -#include #include #include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL @@ -237,6 +235,7 @@ namespace sprout { template struct is_string_of_impl< T, + Elem, typename std::enable_if< std::is_same< T, @@ -354,67 +353,6 @@ namespace sprout { return sprout::fixed::join_back(lhs, rhs); } - template - SPROUT_CONSTEXPR inline std::enable_if< - sprout::is_string_of< - typename sprout::fixed_container_traits >::internal_type, - T - >::value, - typename sprout::fit::result_of::realine< - typename sprout::fixed::result_of::join_back< - sprout::sub_array, - sprout::basic_string - >::type - >::type - >::type operator+( - sprout::sub_array const& lhs, - T const (& rhs)[N2] - ) - { - return sprout::fit::realine(sprout::fixed::join_back(lhs, sprout::to_string(rhs))); - } - template - SPROUT_CONSTEXPR inline std::enable_if< - sprout::is_string_of< - typename sprout::fixed_container_traits >::internal_type, - T - >::value, - typename sprout::fit::result_of::realine< - typename sprout::fixed::result_of::join_front< - sprout::sub_array, - sprout::basic_string - >::type - >::type - >::type operator+( - T const (& lhs)[N2], - sprout::sub_array const& rhs - ) - { - return sprout::fit::realine(sprout::fixed::join_front(rhs, sprout::to_string(lhs))); - } - template - SPROUT_CONSTEXPR inline std::enable_if< - std::is_same< - typename sprout::fixed_container_traits >::internal_type::value_type, - typename sprout::fixed_container_traits >::internal_type::value_type - >::value - && sprout::is_basic_string >::internal_type>::value - && sprout::is_basic_string >::internal_type>::value - , - typename sprout::fit::result_of::realine< - typename sprout::fixed::result_of::join_back< - sprout::sub_array, - sprout::sub_array - >::type - >::type - >::type operator+( - sprout::sub_array const& lhs, - sprout::sub_array const& rhs - ) - { - return sprout::fit::realine(sprout::fixed::join_back(lhs, rhs)); - } - template inline std::basic_ostream& operator<<(std::basic_ostream& lhs, sprout::basic_string const& rhs) { return lhs << rhs.c_str();