Conversion Constructors and Subtle Dangers

Pretty much every old C++ war-horse knows to use the explicit keyword when defining constructors with one only (non-defaulted) parameter. Even so, the subtleties of what can go wrong wit...


January 24, 2011
URL:http://www.drdobbs.com/cpp/conversion-constructors-and-subtle-dange/229300256

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.