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 11a92a8e54
commit 139220058e
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