Changes between Initial Version and Version 1 of Ticket #8011, comment 1
- Timestamp:
- Feb 11, 2013, 11:48:59 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8011, comment 1
initial v1 2 2 > iterator_range<I>::size() is always defined, but fails a static assertion if I is not a random access iterator. This means it's not possible to use SFINAE To detect whether r.size() is valid. 3 3 4 What is a use case tousing SFINAE to detect whether r.size() is valid? (I'm not questioning that there is one, I'm just curious.)4 What is a use case for using SFINAE to detect whether r.size() is valid? (I'm not questioning that there is one, I'm just curious.)