C++ Logo

sg20

Advanced search

Re: Introducing references

From: Peter Sommerlad (C++) <"Peter>
Date: Thu, 27 Jan 2022 14:42:21 +0100
I teach to use those optionals as replacements for pointers and I
introduce optional before pointers as a means to return from a
potentially failing function.

Sorry for the noise.

Peter.

Victor Eijkhout wrote on 27.01.22 14:34:
>
>
>> On , 2022Jan27, at 05:42, Peter C++ <peter.cpp_at_[hidden]
>> <mailto:peter.cpp_at_[hidden]>> wrote:
>>
>> use boost::optional or tl::optional or jss::object_ptr if you insist
>> of seeing pointer
>
> Is this still about teaching?
>
> Victor.
>


-- 
Peter Sommerlad
Better Software: Consulting, Training, Reviews
Modern, Safe & Agile C++
peter.cpp_at_[hidden]
+41 79 432 23 32

Received on 2022-01-27 13:42:24