aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types-parsers.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-11 17:42:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-11 17:42:38 +0200
commitd6858f2d1612027d79acf8ea231f7b4c5859efa1 (patch)
tree77920c35f45749b3fe8d0999482400ebf80f8f5a /bpkg/types-parsers.txx
parent61349dcf5fbfeab888ea345ebec3d887777a2782 (diff)
Work around compiler issues in qualified_option class template
Diffstat (limited to 'bpkg/types-parsers.txx')
-rw-r--r--bpkg/types-parsers.txx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/types-parsers.txx b/bpkg/types-parsers.txx
index 7a40b0e..a747417 100644
--- a/bpkg/types-parsers.txx
+++ b/bpkg/types-parsers.txx
@@ -6,7 +6,7 @@ namespace bpkg
{
namespace cli
{
- template <const char* Q[], typename V>
+ template <const char* const* Q, typename V>
void parser<qualified_option<Q, V>>::
parse (qualified_option<Q, V>& x, bool& xs, scanner& s)
{
@@ -25,7 +25,7 @@ namespace bpkg
if (n != string::npos)
{
- const char** q (Q);
+ const char* const* q (Q);
for (; *q != nullptr; ++q)
{
if (v.compare (0, n, *q) == 0)
@@ -58,7 +58,7 @@ namespace bpkg
//
if (qv.empty ())
{
- for (const char** q (Q); *q != nullptr; ++q)
+ for (const char* const* q (Q); *q != nullptr; ++q)
{
argv_scanner s (0, ac, av);
parser<V>::parse (x[*q], dummy, s);