mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
temporary workaround for old GCC
This commit is contained in:
parent
8274f34db4
commit
6e8f686f72
6 changed files with 101 additions and 20 deletions
|
@ -137,6 +137,12 @@ namespace sprout {
|
|||
return sprout::sub_window(arr, to_first);
|
||||
}
|
||||
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<!sprout::is_sub_array<Container>::value, sprout::sub_array<Container&> >::type
|
||||
sub(Container& arr) {
|
||||
return sprout::sub(arr, sprout::begin(arr), sprout::end(arr));
|
||||
}
|
||||
|
||||
//
|
||||
// csub
|
||||
//
|
||||
|
@ -218,6 +224,12 @@ namespace sprout {
|
|||
return sprout::csub_window(arr, to_first);
|
||||
}
|
||||
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<!sprout::is_sub_array<Container>::value, sprout::sub_array<Container const&> >::type
|
||||
csub(Container const& arr) {
|
||||
return sprout::csub(arr, sprout::begin(arr), sprout::end(arr));
|
||||
}
|
||||
|
||||
//
|
||||
// sub_copy
|
||||
//
|
||||
|
@ -298,6 +310,12 @@ namespace sprout {
|
|||
{
|
||||
return sprout::sub_window_copy(arr, to_first);
|
||||
}
|
||||
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<!sprout::is_sub_array<Container>::value, sprout::sub_array<Container> >::type
|
||||
sub_copy(Container const& arr) {
|
||||
return sprout::sub_copy(arr, sprout::begin(arr), sprout::end(arr));
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_SUB_ARRAY_SUB_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue