Enforce parameter and grammar type to catch subtle bugs
This commit is contained in:
committed by
Patrick Niklaus
parent
5a97e7a7ce
commit
42e6e974ac
@@ -21,6 +21,7 @@ namespace api
|
||||
namespace detail
|
||||
{
|
||||
template <typename T> using is_parameter_t = std::is_base_of<engine::api::BaseParameters, T>;
|
||||
template <typename T> using is_grammar_t = std::is_base_of<BaseParametersGrammar, T>;
|
||||
} // ns detail
|
||||
|
||||
// Starts parsing and iter and modifies it until iter == end or parsing failed
|
||||
|
||||
Reference in New Issue
Block a user