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: standard error messages in a std::string or in a const char * Date: Wed, 11 Sep 2019 17:11:16 -0700 Organization: None to speak of Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="9405e1ef90ab11981d179ec051d04224"; logging-data="27896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oCQsxah8VpCdNNlt4Rutg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:w1vaBFQc8A6T50IKIq74oEQ7cq8= sha1:3ZhZqDUPT6MsGQZpzeUcWnYQ6SI= Xref: csiph.com comp.lang.c++:68345 James Kuyper writes: [...] > The C++ header has essentially the same contents as the C > header of the same name. The C++ header differs from > mainly in that the functions are declared inside the std:: > namespace. defines strerror and other identifiers in the global namespace, and may optionally define them in the std namespace, while defines them in the std namespace and may optionally define them in the global namespace. (I dislike this, but that's the way the language specifies it.) Also, the <*.h> C headers are deprecated as of C++17. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */