Skip Navigation

C++: Disable implicit conversion in specific contexts only

indii.org /blog/cplusplus-disable-implicit-conversion-in-specific-contexts/
Embed prevented alt text

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.

5

You're viewing a single thread.

5 comments