mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-11 09:50:06 +00:00
fix is_chain_of_impl
This commit is contained in:
parent
aa97ec3ba6
commit
74b618c412
@ -111,7 +111,7 @@ struct is_chain_of_impl
|
||||
value_type>::value>::type>
|
||||
static Iterator invoke(Iterator iter, Iterator end, Iterator rollback)
|
||||
{
|
||||
if(iter == end) return iter;
|
||||
if(iter == end) return rollback;
|
||||
const Iterator tmp = headT::invoke(iter, end);
|
||||
return (tmp == iter && !ignorable) ? rollback :
|
||||
is_chain_of_impl<condT...>::invoke(tmp, end, rollback);
|
||||
@ -129,7 +129,7 @@ struct is_chain_of_impl<tailT>
|
||||
value_type>::value>::type>
|
||||
static Iterator invoke(Iterator iter, Iterator end, Iterator rollback)
|
||||
{
|
||||
if(iter == end) return iter;
|
||||
if(iter == end) return rollback;
|
||||
const Iterator tmp = tailT::invoke(iter, end);
|
||||
return (tmp == iter) ? (ignorable ? iter : rollback) : tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user