Enforce parameter and grammar type to catch subtle bugs

This commit is contained in:
Daniel J. Hofmann
2016-02-17 15:10:49 -08:00
committed by Patrick Niklaus
parent 6fecce23fc
commit 7e1c164937
2 changed files with 11 additions and 6 deletions
+1
View File
@@ -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