<?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++: write my own function that returns true / false, and a value, part 2 (embedded friendly)</title><link>/technologies/code_exchange/b/blog/posts/modern-c-write-my-own-function-that-returns-true-false-and-a-value-part-2-embedded-friendly</link><description>what came before:

 modern C++: function returns true / false, and a value or error message 
 modern C++: write my own function that returns true / false, and a value or error message 

C++ has released a new feature: return ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: modern C++: write my own function that returns true / false, and a value, part 2 (embedded friendly)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-write-my-own-function-that-returns-true-false-and-a-value-part-2-embedded-friendly</link><pubDate>Sat, 06 Dec 2025 19:03:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:9b9f00f1-c981-4ed1-91c8-e57640b80304</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;code in action,&amp;nbsp;for a Raspberry Pico GPS design:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="546" src="/resized-image/__size/998x1092/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-9b9f00f1-c981-4ed1-91c8-e57640b80304/pastedimage1765047595678v1.png" width="499" /&gt;&lt;/p&gt;
&lt;p&gt;19&amp;nbsp;satellites in view from my back window. The parser mechanism described above is used. stl algorithms split the found satellites into glonass and gps types.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29406&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: modern C++: write my own function that returns true / false, and a value, part 2 (embedded friendly)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-write-my-own-function-that-returns-true-false-and-a-value-part-2-embedded-friendly</link><pubDate>Thu, 04 Dec 2025 23:33:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:9b9f00f1-c981-4ed1-91c8-e57640b80304</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice post Jan.&lt;/p&gt;
&lt;p&gt;I like the idea of getting&amp;nbsp;multiple types of information directly from functions.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29406&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: modern C++: write my own function that returns true / false, and a value, part 2 (embedded friendly)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/modern-c-write-my-own-function-that-returns-true-false-and-a-value-part-2-embedded-friendly</link><pubDate>Thu, 04 Dec 2025 19:42:10 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:9b9f00f1-c981-4ed1-91c8-e57640b80304</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I flagged this as embedded friendly, but there is a caveat for ARM controllers:&lt;/p&gt;
&lt;p&gt;It needs C++ 15. If you are using a Raspberry Pico 2, in RISC-V mode, it will work. GCC15 is released for that.&lt;/p&gt;
&lt;p&gt;But as of today, there is no published ARM GCC 15 toolchain. If the OpenArm initiative sticks to its schedule, a version 15 release is imminent...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29406&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>