mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
コンパイルエラー修正
This commit is contained in:
parent
c2db1dbae2
commit
d12cab546c
4 changed files with 6 additions and 67 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/fixed_container/traits.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace fit {
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace sprout {
|
|||
Args const&... args
|
||||
)
|
||||
{
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(result), args...);
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(cont), args...);
|
||||
}
|
||||
template<typename Container, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
|
@ -68,7 +68,7 @@ namespace sprout {
|
|||
Args const&... args
|
||||
)
|
||||
{
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(result), args...);
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(cont), args...);
|
||||
}
|
||||
template<std::size_t InitSize, typename Container, typename Generator, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
|
@ -97,7 +97,7 @@ namespace sprout {
|
|||
Args const&... args
|
||||
)
|
||||
{
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(result), args...);
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(cont), args...);
|
||||
}
|
||||
template<typename Container, typename Head, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace sprout {
|
|||
sprout::index_tuple<Indexes...>
|
||||
)
|
||||
{
|
||||
return sprout::remake_clone<Container, Container>(result, sprout::size(result), (*(sprout::fixed_begin(cont) + Indexes))...);
|
||||
return sprout::remake_clone<Container, Container>(cont, sprout::size(cont), (*(sprout::fixed_begin(cont) + Indexes))...);
|
||||
}
|
||||
template<typename Container, typename Compare, std::ptrdiff_t I1, std::ptrdiff_t... Indexes, std::ptrdiff_t I2, std::ptrdiff_t... SortedIndexes, std::ptrdiff_t... NextIndexes, std::ptrdiff_t... PreIndexes, std::ptrdiff_t... PostIndexes>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
|
|
|
@ -10,12 +10,10 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple.hpp>
|
||||
#include <sprout/fixed_container/traits.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/operation/fixed/push_back.hpp>
|
||||
#include <sprout/operation/fixed/push_front.hpp>
|
||||
#include <sprout/operation/fixed/join_back.hpp>
|
||||
#include <sprout/operation/fixed/join_front.hpp>
|
||||
#include <sprout/operation/fit/realine.hpp>
|
||||
#include <sprout/detail/iterator.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
|
||||
|
||||
|
@ -237,6 +235,7 @@ namespace sprout {
|
|||
template<typename T, typename Elem>
|
||||
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<typename T, typename String, std::size_t N2>
|
||||
SPROUT_CONSTEXPR inline std::enable_if<
|
||||
sprout::is_string_of<
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<String> >::internal_type,
|
||||
T
|
||||
>::value,
|
||||
typename sprout::fit::result_of::realine<
|
||||
typename sprout::fixed::result_of::join_back<
|
||||
sprout::sub_array<String>,
|
||||
sprout::basic_string<T, N2 - 1>
|
||||
>::type
|
||||
>::type
|
||||
>::type operator+(
|
||||
sprout::sub_array<String> const& lhs,
|
||||
T const (& rhs)[N2]
|
||||
)
|
||||
{
|
||||
return sprout::fit::realine(sprout::fixed::join_back(lhs, sprout::to_string(rhs)));
|
||||
}
|
||||
template<typename T, typename String, std::size_t N2>
|
||||
SPROUT_CONSTEXPR inline std::enable_if<
|
||||
sprout::is_string_of<
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<String> >::internal_type,
|
||||
T
|
||||
>::value,
|
||||
typename sprout::fit::result_of::realine<
|
||||
typename sprout::fixed::result_of::join_front<
|
||||
sprout::sub_array<String>,
|
||||
sprout::basic_string<T, N2 - 1>
|
||||
>::type
|
||||
>::type
|
||||
>::type operator+(
|
||||
T const (& lhs)[N2],
|
||||
sprout::sub_array<String> const& rhs
|
||||
)
|
||||
{
|
||||
return sprout::fit::realine(sprout::fixed::join_front(rhs, sprout::to_string(lhs)));
|
||||
}
|
||||
template<typename String, std::size_t String2>
|
||||
SPROUT_CONSTEXPR inline std::enable_if<
|
||||
std::is_same<
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<String> >::internal_type::value_type,
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<String> >::internal_type::value_type
|
||||
>::value
|
||||
&& sprout::is_basic_string<typename sprout::fixed_container_traits<sprout::sub_array<String> >::internal_type>::value
|
||||
&& sprout::is_basic_string<typename sprout::fixed_container_traits<sprout::sub_array<String2> >::internal_type>::value
|
||||
,
|
||||
typename sprout::fit::result_of::realine<
|
||||
typename sprout::fixed::result_of::join_back<
|
||||
sprout::sub_array<String>,
|
||||
sprout::sub_array<String2>
|
||||
>::type
|
||||
>::type
|
||||
>::type operator+(
|
||||
sprout::sub_array<String> const& lhs,
|
||||
sprout::sub_array<String2> const& rhs
|
||||
)
|
||||
{
|
||||
return sprout::fit::realine(sprout::fixed::join_back(lhs, rhs));
|
||||
}
|
||||
|
||||
template<typename T, std::size_t N, typename Traits>
|
||||
inline std::basic_ostream<T, Traits>& operator<<(std::basic_ostream<T, Traits>& lhs, sprout::basic_string<T, N> const& rhs) {
|
||||
return lhs << rhs.c_str();
|
||||
|
|
Loading…
Reference in a new issue