OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: XML Schema equivClass.

[ Lists Home | Date Index | Thread Index ]
  • From: "Fabio Arciniegas A." <fabio@viaduct.com>
  • To: Steve Harris <sharris@primus.com>
  • Date: Thu, 03 Feb 2000 16:06:57 -0500

> > But with pointers, you cannot really use the STL (no wonder if you
> > read what the STL author thinks of OOP). So you also need some
> > wrapper classes....
> We use the Standard C++ containers with pointers all the time. You can
> take a container of A*'s, put your A*'s and B*'s (and any other types
> derived from A) into it, and call polymorphic methods on the elements
> using the std::mem_fun* functors.

Right. Also some people in the idioms arena have defined cannonical
C++ classes that define internal classes intended to serve only as
function objects, so pointers can be gracefully handled in STL using
the function versions that accept a predicate as the last param... 

but this is *way* off-topic...sorry.


Fabio Arciniegas A.		        Viaduct Technologies, Inc.
fabio@viaduct.com			Software Engineer
Interests: XML, Wittgenstein and just about everything in between.
Oblique Strategy of the day: 	      "Abandon normal instruments"


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS