Stl: <xutility>: Teach _Ptr_*_cat about contiguous iterators

Created on 23 May 2020  路  4Comments  路  Source: microsoft/STL

Similar to #819 _Ptr*_cat currently only looks at plain pointers. We should expand that to contiguous_iterators

performance

Most helpful comment

Yes I already did and it is already marked as triaged and under consideration

All 4 comments

@CaseyCarter it is weekend, do some fun stuff

Oh this one led me to a beautiful ICE:

template<class T> 
inline constexpr bool bark = false;

template<class T, bool = bark<T>> 
inline constexpr bool meow = true;

template<class T> 
inline constexpr bool meow<T*> = meow<T>; 

Did you get a chance to report that ICE on Developer Community for the compiler team to investigate?

Yes I already did and it is already marked as triaged and under consideration

Was this page helpful?
0 / 5 - 0 ratings