summaryrefslogtreecommitdiffstats
path: root/src/shlex.resolver.hh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shlex.resolver.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shlex.resolver.hh b/src/shlex.resolver.hh
index 404d142..50afa24 100644
--- a/src/shlex.resolver.hh
+++ b/src/shlex.resolver.hh
@@ -37,10 +37,10 @@
#include <vector>
#include "base/intern_string.hh"
+#include "base/types.hh"
#include "fmt/format.h"
#include "mapbox/variant.hpp"
-struct null_value_t {};
using scoped_value_t = mapbox::util::
variant<std::string, string_fragment, int64_t, double, null_value_t>;
@@ -65,7 +65,7 @@ struct formatter<scoped_value_t> : formatter<std::string> {
class scoped_resolver {
public:
scoped_resolver(
- std::initializer_list<std::map<std::string, scoped_value_t>*> l)
+ std::initializer_list<const std::map<std::string, scoped_value_t>*> l)
{
this->sr_stack.insert(this->sr_stack.end(), l.begin(), l.end());
}