Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Basic library interface and separation problem
Re: Basic library interface and separation problem [message #21877 is a reply to message #21876] Tue, 09 June 2009 08:22 Go to previous message
janwilmans is currently offline  janwilmans
Messages: 51
Registered: January 2007
Member

Koldo, sorry for the confusion, what I was looking was that:

When two classes need to share more then just basetypes, in my opinion you have two options:

- make one class depend on the other
- create a third class that serves as 'common' API for both.

I my case, because the two class are in separate libraries and I do not want source code dependencies between them; I've done what Didier and you suggested, created a third library that is shared/depended on by the other two which contains a class that serves as common API for both libraries.

Anyway, thanks for your swift responses!

Jan


Jan (skyhawk)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: overloading operators rules
Next Topic: Ultimate++ possible adaptation to C++0x
Goto Forum:
  


Current Time: Mon Jul 07 05:19:39 CEST 2025

Total time taken to generate the page: 0.04204 seconds