this post was submitted on 17 Jun 2023
12 points (100.0% liked)

C++

1732 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
 

Article by Çağlayan Dökme

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

I also like to use std::optional if a function may not return a result so I won't have to return a pointer, that might be a nullptr.

And std::variant as a typesafe less hacky union.