<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>modern C++: function returns true / false, and a value or error message</title><link>/technologies/code_exchange/b/blog/posts/modern-c-modules-function-returns-value-or-error-message</link><description>I&amp;#39;m experimenting with new C++ constructs. GCC 15 implements an interesting concept of the C++26 standard: A function can return a status, and either a value or an error message.Example is the standard std::to_chars() function. It...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: modern C++: function returns true / false, and a value or error message</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-modules-function-returns-value-or-error-message</link><pubDate>Sat, 01 Mar 2025 19:20:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c9488540-65bf-4ad7-917f-8ea0574e75eb</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;This approach is an excellent way to build error detection and recovery capability into your software.&lt;/p&gt;
&lt;p&gt;If you control the way errors are handled, you can build more robust software.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28743&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>