[geos-devel] GEOS and VC++ 2005

strk at refractions.net strk at refractions.net
Sun Jan 8 10:17:15 EST 2006


On Sun, Jan 08, 2006 at 02:34:53PM +0000, Artem Pavlenko wrote:
> Hi strk,
> 
> See below,
> >anther way to define
> >container-related things, which seems to me
> >more consistent with C++ practice:
> >
> >class EdgeIntersectionList {
> >public:
> >	typedef set<...> container;
> >	typedef container::iterator iterator;
> >	typedef container::const_iterator const_iterator;
> >...
> >}
> >  
> Why don't you go one step  further and make templated version e.g 

Because:

	1) This is already a step further from simply appying
	   patch provided by Charlie

	and, most importantly:

	2) We're short of funds on GEOS development

Thanks for feedback, anyway.

--strk;

> something like that:
> 
> template <typename T>
> class EdgeIntersectionList
> {
>         typedef T container;
>         ........................
>         ........................   
> };
> typedef EdgeIntersectionList< std::set <...> > MyEdgeIntersectionList
> I think this would be more flexible.
> 
> >Do you think we should use this format for all classes ?
> >  
> Yes.
> >I'd say we do, unless there are known platform on which
> >this is unsupported.
> >  
> Do mean compiler support?  I can not see any problems as this is a 
> standard c++.
> Cheers
> Artem
> 
> 
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for low technology.
  X     Keep e-mail messages readable by any computer system.
 / \    Keep it ASCII. 




More information about the geos-devel mailing list