BIND 10 #2613: Make RRsetCollectionBase iterator implementation compatible with Boost foreach
BIND 10 Development
do-not-reply at isc.org
Mon Jan 21 10:44:48 UTC 2013
#2613: Make RRsetCollectionBase iterator implementation compatible with Boost
foreach
-------------------------------------+-------------------------------------
Reporter: muks | Owner:
Type: enhancement | UnAssigned
Priority: medium | Status: new
Component: libdns++ | Milestone: Next-
Keywords: | Sprint-Proposed
Sensitive: 0 | Resolution:
Sub-Project: DNS | CVSS Scoring:
Estimated Difficulty: 0 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Comment (by vorner):
Hello
Replying to [comment:2 muks]:
> Replying to [comment:1 jinmei]:
> > What's the specific requirement? I suspect it's not feasible (at
> > least quite difficult) to make it bidirectional iterator for DB-based
> > data sources.
>
> Michal has to answer this, as it was his request during review. I
thought it was outside the scope of #2432 (see comment #32 on that ticket)
and made it into another ticket.
I don't know the details of BOOST_FOREACH, nor std::foreach. But I doubt
they need it to be bi-directional (both foreachs go only forward). I guess
we need:
• Test that it works.
• Add some typedefs and methods with names such that the foreach expects
them.
So I guess this would be mostly making the naming compatible. I don't
think we're missing something functionality-wise, at least for read-only
foreach (used with const referrence).
--
Ticket URL: <http://bind10.isc.org/ticket/2613#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list