Fix CTA compatibility with multiple catalogue versions
Problem
The current file version.hpp.in
had this line incorrectly changed during a previous commit to:
constexpr uint16_t SUPPORTED_CTA_CATALOGUE_SCHEMA_VERSIONS_JOINED = @SUPPORTED_CTA_CATALOGUE_SCHEMA_VERSIONS_JOINED@;
This will obviously fail when @SUPPORTED_CTA_CATALOGUE_SCHEMA_VERSIONS_JOINED@
is a comma-separated list of catalogue versions, as expected during a catalogue release.
Solution
In order to preserve constexpr
, we can change the type from uint16_t
to std::array<int, N>
.
This, together with some other small changes, should allow CTA to build correctly during catalogue releases.