[Metakit] Metakit 2.4.9.4

John Fletcher J.P.Fletcher at aston.ac.uk
Mon Jun 20 14:00:08 CEST 2005


To:             	Metakit list <metakit at equi4.com>
From:           	Jean-Claude Wippler <jcw at equi4.com>
Date sent:      	Fri, 10 Jun 2005 23:57:39 +0200
Subject:        	[Metakit] Metakit 2.4.9.4

> I'm pleased to announce the 2.4.9.4 release of Metakit.
> 
> See http://www.equi4.com/pub/mk/CHANGES for the list of changes.
> See http://www.equi4.com/metakit.html for general information.
> 
> Enjoy,
> Jean-Claude
> _____________________________________________
> Metakit mailing list  -  Metakit at equi4.com
> http://www.equi4.com/mailman/listinfo/metakit
>

Jean-Claude

Thank you for the upgrade.

I have a couple of comments relating to use with -Dq4_STD on 
Linux, specifically in relation to the gcc compiler.

For several releases now I have needed to make a few changes to 
std.h to get it to compile. These amount to declaring a type fro the 
iterator which can then be used to make a cast.  I have attached 
this in std.h.diff

I also with this release have been unable to do a build

make CXXFLAGS="-Dq4_STD"

as documented in the README file.  This is related to a change in 
the way in which CXXFLAGS is used, which means that a needed 
include gets lost.  I have had to change the Makefile by editing it 
after running configure.

I hope this helps

Best wishes 

John Fletcher

-- 
Dr John P. Fletcher   Tel: (44) 121 204 3389 (direct line)
Chemical Engineering and Applied Chemistry (CEAC),
School of Engineering and Applied Science (SEAS),
Aston University, Aston Triangle, BIRMINGHAM B4 7ET  U.K.               
CEAC Web site http://www.ceac.aston.ac.uk/
FAX: (44) 121 204 3679



-------------- next part --------------
*** orig/std.h	2004-02-16 15:55:56.000000000 +0000
--- std.h	2005-06-16 11:15:10.000000000 +0100
***************
*** 21,25 ****
    d4_std::vector< T, d4_std::allocator<T> > _vector;
  #else
!   d4_std::vector< T, d4_std::alloc > _vector;
  #endif
  
--- 21,27 ----
    d4_std::vector< T, d4_std::allocator<T> > _vector;
  #else
!   //d4_std::vector< T, d4_std::alloc > _vector;
!   typedef typename d4_std::vector< T, d4_std::allocator<T> >::iterator t4_v_it;
!   d4_std::vector< T, d4_std::allocator<T> > _vector;
  #endif
  
***************
*** 48,58 ****
    void InsertAt(int nIndex, const T& newElement, int nCount =1)
    {
!     _vector.insert(&_vector[nIndex], nCount, newElement);
!   }
  
    void RemoveAt(int nIndex, int nCount =1)
    {
!     _vector.erase(&_vector[nIndex], &_vector[nIndex+nCount]);
!   }
  };
  
--- 50,62 ----
    void InsertAt(int nIndex, const T& newElement, int nCount =1)
    {
!     //_vector.insert(&_vector[nIndex], nCount, newElement);
!     _vector.insert((t4_v_it)&_vector[nIndex], nCount, newElement);
!  }
  
    void RemoveAt(int nIndex, int nCount =1)
    {
!     // _vector.erase(&_vector[nIndex], &_vector[nIndex+nCount]);
!     _vector.erase((t4_v_it)&_vector[nIndex],(t4_v_it)&_vector[nIndex+nCount]);
!  }
  };
  


More information about the Metakit mailing list