[geos-devel] GEOS and VC++ 2005

Charlie Savage cfis at interserv.com
Sun Jan 8 15:12:00 EST 2006


Either strk's idea of Artem's idea works for me.

Charlie

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 
> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2781 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060108/2ba2a21d/smime.bin


More information about the geos-devel mailing list