rstl: Check __cpp_lib_concepts for contiguous_iterator_tag

This commit is contained in:
Luke Street 2020-05-27 14:50:12 -04:00
parent 13663fa304
commit eb979c9760
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ public:
using difference_type = std::ptrdiff_t; using difference_type = std::ptrdiff_t;
using pointer = T*; using pointer = T*;
using reference = T&; using reference = T&;
// atdna / Apple Clang workaround #ifdef __cpp_lib_concepts
#if __cplusplus > 201703L && !defined(__APPLE__)
using iterator_category = std::contiguous_iterator_tag; using iterator_category = std::contiguous_iterator_tag;
#else #else
using iterator_category = std::random_access_iterator_tag; using iterator_category = std::random_access_iterator_tag;