On Thu, Oct 13, 2011 at 10:26 PM, Roy Stogner <[email protected]> wrote: > > legal C++. We just haven't fixed that because the tricks work using > our Makefiles with all the compiler/linkers we try, and because fixing > them would require a major refactoring.
If it did come to that, I was curious to hear about anyone's philosophical objections to the "curiously recurring template pattern" idea. http://eli.thegreenplace.net/2011/05/17/the-curiously-recurring-template-pattern-in-c/ *Very* roughly, the idea would be: template <typename Child> class FE { void interface() { static_cast<Child*>(this)->implementation(); } }; class Lagrange : FE<Lagrange> { void implementation() { cerr << "Lagrange implementation\n"; } }; This is completely different to what we currently have, but ostensibly 1.) Would be of comparable speed (?) 2.) Would not have huge amounts of explicit instantiation. -- John ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
