fix algorithms SFINAE: iterator or container

This commit is contained in:
bolero-MURAKAMI 2013-10-31 20:35:30 +09:00
parent 040278bd11
commit 6b1ef202d8

View file

@ -80,7 +80,8 @@ namespace sprout {
struct is_iterator_outputable
: public std::integral_constant<
bool,
sprout::is_output_iterator<MaybeIterator>::value || sprout::is_forward_iterator<MaybeIterator>::value
sprout::is_output_iterator<typename std::decay<MaybeIterator>::type>::value
|| sprout::is_forward_iterator<typename std::decay<MaybeIterator>::type>::value
>
{};
} // namespace sprout