Skip to content

Commit 684055a

Browse files
committed
ContinuationForTraits fixes
1 parent ee5fc0e commit 684055a

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

include/detail/traits_impl.h

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef CPP_STREAM_DETAIL_TRAITS_IMPL_H
22
#define CPP_STREAM_DETAIL_TRAITS_IMPL_H
33

4+
#include "continuation_impl.h"
45
#include <type_traits> // ::std::invoke_result_t, ::std::decay_t, ::std::enable_if_t, ::std::is_same, ::std::is_base_of
56
#include <iterator> // ::std::iterator_traits, ::std::forward_iterator_tag, ::std::input_iterator_tag
67
#include <utility> // ::std::declval
@@ -11,9 +12,6 @@ namespace stream
1112
template<typename T, typename Source>
1213
struct Stream;
1314

14-
template<typename T, bool Fin>
15-
class Continuation;
16-
1715
template<typename T>
1816
class ValueHolder;
1917

@@ -216,17 +214,17 @@ namespace stream
216214

217215

218216
template<typename C, typename S, typename = void>
219-
struct ContinutationForTraitsImpl
217+
struct ContinuationForTraitsImpl
220218
{
221219
static constexpr bool IsContinuation = false;
222220
};
223221

224222
template<typename C, typename S>
225-
struct ContinutationForTraitsImpl<Continuation<C, false>, S,
226-
VoidT<::std::enable_if_t<IsOptionalV<InvokeResultT<Continuation<C, false>,
227-
typename StreamTraits<S>::RealType&&,
228-
const S&>>>>
229-
>
223+
struct ContinuationForTraitsImpl<Continuation<C, false>, S,
224+
VoidT<::std::enable_if_t<IsOptionalV<InvokeResultT<Continuation<C, false>,
225+
typename StreamTraits<S>::RealType&&,
226+
const S&>>>>
227+
>
230228
{
231229
static constexpr bool IsContinuation = true;
232230
using ValueType = typename InvokeResultT<Continuation<C, false>,
@@ -235,12 +233,12 @@ namespace stream
235233
};
236234

237235
template<typename C, typename S>
238-
struct ContinutationForTraitsImpl<Continuation<C, true>, S,
239-
VoidT<::std::enable_if_t<IsOptionalV<InvokeResultT<Continuation<C, true>,
240-
typename StreamTraits<S>::RealType&&,
241-
const S&,
242-
bool&>>>>
243-
>
236+
struct ContinuationForTraitsImpl<Continuation<C, true>, S,
237+
VoidT<::std::enable_if_t<IsOptionalV<InvokeResultT<Continuation<C, true>,
238+
typename StreamTraits<S>::RealType&&,
239+
const S&,
240+
bool&>>>>
241+
>
244242
{
245243
static constexpr bool IsContinuation = true;
246244
using ValueType = typename InvokeResultT<Continuation<C, true>,

0 commit comments

Comments
 (0)