1
submitted 2 years ago* (last edited 2 years ago) by lawmurray@programming.dev to c/cpp@programming.dev

C++ trick I pulled today. Like an explicit constructor but context dependent. Any alternatives from folks who've needed to do similar? One thing I still need to dig into a little deeper is how copy elision behaves here.

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 15 Nov 2023
1 points (100.0% liked)

C++

2349 readers
13 users here now

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

Rules

founded 3 years ago
MODERATORS