Add programmatic version identification

Issue #20 resolved
Dan Bonachea created an issue

The UPCXX headers should include versioning macros somewhere in the headers (probably upcxx.hpp) that client code can test programmatically to identify the release and infer what features are available.

The simplest approach here would be just a straight #define that we increment on every official release, eg:

#define UPCXX_VERSION 1

or alternatively a date-style version:

#define UPCXX_VERSION 20170901

More complicated schemes to provide separate major/minor/patch version numbers, or even feature macros to identify the availability of specific features are also possible. The latter might eventually become useful if some of our corner features are only implemented on a subset of platforms or compilers.

Comments (2)

  1. Log in to comment