When using std::find with "char" data type, in many cases for-based implementation of std::find is invoked instead of memchr one. To force compiler to use memchr-based implementation of std::find in such a case (see example program) one must use a total of THREE static_casts! This is completely counter-intuitive and absurd.In all situations when using "char" data type std::find should use memchr.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Operating System Language