fix: templatize internal function for value

This commit is contained in:
ToruNiina
2019-06-15 17:12:30 +09:00
parent 558349170d
commit a6706f7879

View File

@@ -1086,8 +1086,8 @@ parse_table_key(location<Container>& loc);
// Here, it parses region of `tab->at(k)` as a table key and check the depth // Here, it parses region of `tab->at(k)` as a table key and check the depth
// of the key. If the key region points deeper node, it would be allowed. // of the key. If the key region points deeper node, it would be allowed.
// Otherwise, the key points the same node. It would be rejected. // Otherwise, the key points the same node. It would be rejected.
template<typename Iterator> template<typename Value, typename Iterator>
bool is_valid_forward_table_definition(const value& fwd, bool is_valid_forward_table_definition(const Value& fwd,
Iterator key_first, Iterator key_curr, Iterator key_last) Iterator key_first, Iterator key_curr, Iterator key_last)
{ {
location<std::string> def("internal", detail::get_region(fwd).str()); location<std::string> def("internal", detail::get_region(fwd).str());