memesearch
C++23 Library Features Crash

C++23 Library Features Crash

Download Find similar pictures
Text on the meme
//boost::pfr::details template <class T> constexpr auto make_stdarray_from_tuple( T& st, std::index_sequence<0, long> noexecpt{ return std::array<std::nullptr_t, 0>{}; } for (std::string_view field : boost::pfr::names_as_array<T>()){ fmt::println("{}", field); } C++23 library features Prohibited std::basic_string and std::basic_string_view construction from nullptr P2166R1 🔒 Acknowledgements The author would like to thank Antony Polukhin x86-64 clang (trunk) (Editor #1) x86-64 clang (trunk) --std=c++23 -O2 for (std::string_view field : names_as_array<T>()){ fmt::println("{}", field); } error: conversion function from 'value_type' (aka 'std::nullptr_t') to 'std::string_view' (aka 'basic_string_view<wchar_t>') invokes a deleted function note: candidate function has been explicitly deleted No quick fixes available
What it means

A cyclist rides along a path in three panels, but eventually crashes and falls off the bicycle. Beside the panels is a C++23 library-features page showing an error caused by trying to construct a string view from nullptr. The joke compares smoothly progressing code with the inevitable catastrophic compiler failure, making it useful as a reaction to a project that suddenly breaks after seeming to work. EN: A cyclist rides along a path in three panels, but eventually crashes and falls off the bicycle. Beside the panels is a C++23 library-features page showing an error caused by trying to construct a string view from nullptr. The joke compares smoothly progressing code with the inevitable catastrophic compiler failure, making it useful as a reaction to a project that suddenly breaks after seeming to work.

Who
Objects
Tags
Source
Type
image
Size
800×468 · 59.2 KiB
Mood
саркастичный, абсурдный
Language
en
Added