Hacker News new | ask | show | jobs
by Panzerschrek 4 days ago

  void DoSomething(
   _In_reads_bytes_(numBytes) const void * p,
   _In_ size_t numBytes );
It's an anti-pattern in C++, which causes a lot of bugs and security vulnerabilities. That's why C++ Core Guidelines recommend to use std::span.