option_types.hh: fix unfulfilled dependencies of the header

This commit is contained in:
Maxime Coste 2017-11-13 11:27:55 +08:00
parent ffb639bf96
commit 078f0b5c90

View File

@ -9,6 +9,7 @@
#include "option.hh" #include "option.hh"
#include "ranges.hh" #include "ranges.hh"
#include "string.hh" #include "string.hh"
#include "string_utils.hh"
#include "units.hh" #include "units.hh"
#include <tuple> #include <tuple>
@ -235,6 +236,8 @@ inline bool option_add(WorstMatch, StringView)
throw runtime_error("no add operation supported for this option type"); throw runtime_error("no add operation supported for this option type");
} }
class Context;
inline void option_update(WorstMatch, const Context&) inline void option_update(WorstMatch, const Context&)
{ {
throw runtime_error("no update operation supported for this option type"); throw runtime_error("no update operation supported for this option type");