hicks wrote:
There was an intersting article in C++ User's Journal last year containing an implemetation of a many-to-many mapping class.
Yes, this was in the September 2001 issue of the C/C++ User's Journal (p. 40): Extending the Standard Template Library with Association Classes, by Eli Tilevich. Very good article. The code can be downloaded from the CUJ Web Site (http://www.cuj.com). His templates can be used to define one-to-one, one-to-many, or many-to-many relationships that are non-intrusive to the objects that are contained in those relationships. The ManyMany relation also provides for an optional relation attribute (data that properly belongs to the relation, not to to any member of the relation). This code would be a great addition to Boost. Paul Dubuc