This article is from my old blog at kacperkolodziej.com.
I'm trying to follow proposals for new C++ standards. There is a lot of
documents informing C++ enthusiasts about features which will make our code
cleaner, more comprehensible, but sometimes we can see propositions of
improvements which will let us to resign from external libraries in favour of
standard library. One of such improvements is std::embed --
implementation defined function that will embed some data at compile time.
Proposal P1040R0 has been published about a month ago. Its author is JeanHeyd
Meneide. This revision asks about possibility of embedding text and binary
files, ways of making out if loaded file should be interpreted as text or
binary, null termination of loaded data. For me there is one thing that should
be taken for granted -- std::embed and all related functions should be
constexpr. I'm going to keep track of this proposal and inform you about
it.