[Dune] [#393] Add version macro to each module

Dune dune at dune-project.org
Thu Sep 11 15:27:17 CEST 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#393 - Add version macro to each module
User who did this - Christian Engwer (christi)

----------
currently there are some "dune-fem"s left in the examples, but the rest looks good.

I like the idea of different version defines.

I have one question though. I'm a little bit afraid of maintaining all these different version.hh files. Do you think it is possible to find a solution, that does not require recreating version.hh for all modules? And how would the headers be named, in order to avoid conflicting names?

The namespace "dune/grid" i.e. would be sufficient I think. For example I would consider dune/grid a namespace for a concept (that of a grid) and therefor other grids (in different modules) should also be installed under dune/grid. Thus it would not be possible to name the file dune/grid/version.hh.

Would it be possible to putt all the compare-defines into a single version.hh header, add the version-defines (minor, major, etc.) to config.h and write the c++ class in a general feshion, or skip it completely (what is the class need for)?
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=393#comment522

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list