Android source code is definitely not one of them, and yet Google as ISO C++ contributor should know all about modern C++, right?
Ah, what about Microsoft and their UWP code samples for C++ developers, or the C++/WinRT based libraries?
As advocates from C++ Core Guidelines, surely those samples will be perfect examples from modern C++, right?
Or what about Bloomberg, with heavy contributors like John Lakos?
Maybe they are still in the process of adopting C++11 and C++14, while writing a book about language adoption issues.
I like C++ a lot, but we really need a compiler switch to turn off compiling Vintage C++, it would be marvelous.
I 100% agree with breaking C compatibility, breaking ABI compatibility, and turning off vintage C++.
C++ Oboe SDK for Android was initially released in 2018.
Android Games Developer SDK was just released last month.
What game engines? Lumberyard , Unreal and Godot certainly not.
Vulkan C++ bindings from Khronos or Dawn for WebGPU? Also not.
The only modern C++ I can find in real life are at CppCon and C++Now talks, and books promoting it.
Even Bjarne Stroustroup has recently on a interview mentioned how he is disappointed how C++ Core Guidelines keep being largely ignored by the community.
There is even, yet again, a paper from him trying to advocate for better C++ on the next C++ mailing.
C++11 is not a safe language. Not even close. It is much much much better than what came before, but it is not safe.
For example, std::string_view is basically a pointer, as soon as it points to a string that went out of scope you're in trouble if you use it again.
Not sure if it's worse than the impossible to grok and slow to build C++11+ codebases that I've seen - everything is wrapped in unique_ptr and shared_ptrs, add lots of unused overloaded constructors and methods for every const and copy/move/value construct situation, then add an icing of templates. The trend is to assume that problems are solved by wrapping everything in more layers. But it seems like this ends in maybe fewer memory problems but also a lot less useful functionality, makes it a lot slower to build, and makes it so much harder to add, change and fix stuff.
The best code I've seen uses very, very few C++ features (if any at all) and just gets things done in a straightforward way without celebration.