return false;
}
- template <typename Component, typename Attribute>
- bool operator()(Component const& component, boost::optional<Attribute>& attr)
- {
- // return true if the parser succeeds and the slot is not yet taken
- Attribute val;
- if (!*taken && component.parse(first, last, context, skipper, val))
- {
- attr = val;
- *taken = true;
- ++taken;
- return true;
- }
- ++taken;
- return false;
- }
-
template <typename Component>
bool operator()(Component const& component)
{