memesearch
C++ Documentation Contradiction

C++ Documentation Contradiction

Download Find similar pictures
Text on the meme
std::pmr::polymorphic_allocator<T>::destroy (since C++17) template< class U > void destroy( U* p ); (deprecated in C++20) (removed in C++26) Destroys the object pointed to by p, as if by calling p->~U(). Parameters p - pointer to the object being destroyed Notes This function is deprecated via LWG issue 3036 🔒, because its functionality can be provided by the default implementation of std::allocator_traits::destroy and hence extraneous. This function is undeprecated via P2875R4 🔒.
What it means

A screenshot of C++ reference documentation for std::pmr::polymorphic_allocator<T>::destroy has a large red arrow pointing at contradictory status notes: the function is marked deprecated in C++20 and removed in C++26, while the notes say it was undeprecated via P2875R4. The joke is about confusing and inconsistent technical documentation, making it a relatable reaction for programmers dealing with standards changes. EN: A screenshot of C++ reference documentation for std::pmr::polymorphic_allocator<T>::destroy has a large red arrow pointing at contradictory status notes: the function is marked deprecated in C++20 and removed in C++26, while the notes say it was undeprecated via P2875R4. The joke is about confusing and inconsistent technical documentation, making it a relatable reaction for programmers dealing with standards changes.

Objects
Tags
Sources
Type
image
Size
800×331 · 41.6 KiB
Mood
sarcastic, absurd
Language
en
Added