1
submitted 1 year ago* (last edited 1 year 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 controversial new old
there doesn't seem to be anything here
this post was submitted on 15 Nov 2023
1 points (100.0% liked)

C++

0 readers
0 users here now

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

Rules

founded 1 year ago
MODERATORS