Changes between Initial Version and Version 1 of Ticket #8011, comment 1


Ignore:
Timestamp:
Feb 11, 2013, 11:48:59 PM (10 years ago)
Author:
Nathan Ridge

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8011, comment 1

    initial v1  
    22> 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.
    33
    4 What is a use case to using SFINAE to detect whether r.size() is valid? (I'm not questioning that there is one, I'm just curious.)
     4What 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.)