On 10/25/12 1:58 PM, Roy Stogner wrote: > > On Thu, 25 Oct 2012, Roy Stogner wrote: > >> The first thing to do would be creating a shim class API > > Actually, should the first thing be something like: > > template <typename T> > typedef std::vector<T> LibMesh1Array; > > template <typename T> > typedef std::vector<std::vector<T> > LibMesh2Array; > > ? > > Then example codes and user codes could be pre-prepared for any > subsequent API change, and so long as the new array class or its shim > supported [i][j] accessors, those initial changes would be the only > API breakage required.
Libraries like Eigen and Blitz++ use operator() for accessors rather than operator[]. How horrible would it be to go ahead and change to operator() when making this change to LibMeshNArray? Best, -- Boyce ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel