tag:blogger.com,1999:blog-833174317742362874.post4792719090417915905..comments2024-03-29T00:14:18.738-07:00Comments on Insane Coding: Simplifying bootstrapping for virtual constructorsinsane coderhttp://www.blogger.com/profile/06901386115570670209noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-833174317742362874.post-61255021300382043322021-12-29T21:53:30.494-08:002021-12-29T21:53:30.494-08:00Hi..
Calling virtual functions from a constructor ...Hi..<br />Calling virtual functions from a constructor or destructor is considered dangerous most of the times and must be avoided whenever possible.<br />You are also read more <a href="https://www.easyloanmart.in/personal-loan.php" rel="nofollow">Personal Loan Calculator</a>Easy Loan Marthttps://www.blogger.com/profile/07495925139492900808noreply@blogger.comtag:blogger.com,1999:blog-833174317742362874.post-68861420239229489932010-07-25T02:44:12.660-07:002010-07-25T02:44:12.660-07:00Modifying the derived classes with a static constr...Modifying the derived classes with a static construct method was never required. A global function would work just as well.<br /><br />"We can create function pointers to global functions, or static member functions."<br /><br />I only demonstrated the latter version earlier as it keeps things in the family.insane coderhttps://www.blogger.com/profile/06901386115570670209noreply@blogger.comtag:blogger.com,1999:blog-833174317742362874.post-44561308409236808472010-07-24T19:56:31.629-07:002010-07-24T19:56:31.629-07:00Nice job and interesting solutions.
The use of te...Nice job and interesting solutions.<br /><br />The use of template functions to eliminate the need for the static-construct methods is a lot nicer; not only is it less code, but it also avoids having to modify the derived classes themselves.cottonvibeshttps://www.blogger.com/profile/15542648017139504620noreply@blogger.com