Yearly archives: 2021

31 posts

C++: How to avoid implicit conversions

Godbolt updated.

Release 0.6.0

For Visual Studio users pompously named epiphany.h is added. Idea is to turn some quiet implicit conversion warnings into errors.  Just enough to make your code not compilable without the help of  nothing_but<T>. Also data() method and assignment methods got their ref. qualified variants. In order to stop taking data from temporary objects and to stop assigning to temporary objects. Continue reading