From 5427876e36a761380ab9434642e908ee7df46039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 14 Oct 2017 02:04:13 +0200 Subject: [PATCH] Added workaround for GCC 6 compiler error. --- app/src/plasp-app/OptionGroups.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/plasp-app/OptionGroups.cpp b/app/src/plasp-app/OptionGroups.cpp index efe4d27..b283045 100644 --- a/app/src/plasp-app/OptionGroups.cpp +++ b/app/src/plasp-app/OptionGroups.cpp @@ -6,6 +6,11 @@ // //////////////////////////////////////////////////////////////////////////////////////////////////// +// Nasty workaround needed for GCC prior to version 7 +constexpr decltype(OptionGroupBasic::Name) OptionGroupBasic::Name; + +//////////////////////////////////////////////////////////////////////////////////////////////////// + void OptionGroupBasic::addTo(cxxopts::Options &options) { options.add_options(Name) @@ -25,6 +30,11 @@ void OptionGroupBasic::parse(cxxopts::Options &options) //////////////////////////////////////////////////////////////////////////////////////////////////// +// Nasty workaround needed for GCC prior to version 7 +constexpr decltype(OptionGroupOutput::Name) OptionGroupOutput::Name; + +//////////////////////////////////////////////////////////////////////////////////////////////////// + void OptionGroupOutput::addTo(cxxopts::Options &options) { options.add_options(Name) @@ -61,6 +71,11 @@ void OptionGroupOutput::parse(cxxopts::Options &options) //////////////////////////////////////////////////////////////////////////////////////////////////// +// Nasty workaround needed for GCC prior to version 7 +constexpr decltype(OptionGroupParser::Name) OptionGroupParser::Name; + +//////////////////////////////////////////////////////////////////////////////////////////////////// + void OptionGroupParser::addTo(cxxopts::Options &options) { options.add_options(Name)