Re:C++ Fun with(out) keyword explicit
by 72deluxe on Tuesday December 01, 2015 @04:59AM
(#10654432)
I put the default constructor in private and mark the constructor I want everyone to use (typically the only one) as explicit. Seems safer than implicit conversions.
[ Parent
| on HN ]
There are no comments on this comment yet.