cpp
C++ lawmurray Now 100%

C++: Disable implicit conversion in specific contexts only

indii.org

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.

13
5
Comments 5