summaryrefslogtreecommitdiffstats
path: root/async/src/async_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'async/src/async_impl.h')
-rw-r--r--async/src/async_impl.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/async/src/async_impl.h b/async/src/async_impl.h
index 46bc25d..7b5c140 100644
--- a/async/src/async_impl.h
+++ b/async/src/async_impl.h
@@ -26,7 +26,26 @@
26 26
27namespace Async { 27namespace Async {
28 28
29namespace detail {
30
31template<typename T>
32struct identity
33{
34 typedef T type;
35};
36
37template<typename T, typename Enable = void>
38struct isIterable {
39 enum { value = 0 };
40};
41
42template<typename T>
43struct isIterable<T, typename std::conditional<false, typename T::iterator, void>::type> {
44 enum { value = 1 };
45};
46
47} // namespace Detail
29 48
30} // namespace Async 49} // namespace Async
31 50
32#endif // ASYNC_IMPL_H \ No newline at end of file 51#endif // ASYNC_IMPL_H