3 ms·
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 convers
by 72deluxe 11y ago
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.