Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: std::bless Date: Sun, 05 Jan 2020 16:11:38 -0800 Organization: None to speak of Lines: 20 Message-ID: <87lfqlmojp.fsf@nosuchdomain.example.com> References: <9241508d-e9f0-431f-ae5b-2dd98df75ffd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="d79f02f3814f7005520734cd2961b617"; logging-data="793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tIKeR6MLDJYtjcsvB3yca" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:HkQ+9hm6rBDfSI+6lgHUjn1a/hQ= sha1:JwFrlrd1/82OqzHRBoztySW3lqI= Xref: csiph.com comp.lang.c++:71161 Öö Tiib writes: [...] > Uhh. Calm down, what is that std::bless even supposed to be? Never heard > of it. It's mentioned in this proposal, "Implicit creation of objects for low-level object manipulation" published 2018-02-11: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0593r2.html It looks similar to std::launder, introduced in C++17. Perl has a built-in "bless" function. I presume that's where the name came from. It's not mentioned in the latest C++ draft standard. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com [Note updated email address] Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */