[bind10-dev] #2376 and more lightweight approach

Michal 'vorner' Vaner michal.vaner at nic.cz
Fri Nov 16 19:35:46 UTC 2012


Hello

On Tue, Nov 13, 2012 at 10:39:22AM -0800, JINMEI Tatuya / 神明達哉 wrote:
> In this case I'm okay with the functor approach; I'm not so sure if
> "add RRset" is the only interface we'll need, but I don't have a
> specific other ideas either.  I have no opinion about whether to
> combine/separate the error/warn callbacks.  I don't see the need for
> combining the add callback and error/warn callbacks, but if we do so,
> I'd rather use a struct than pair.  After all pair is just a struct
> for exactly two members, and I don't see much advantage in restricting
> the number of members in this case.

Well, the advantage of pair is we don't have to write the class/struct. A
typedef is enough and in case we need more than two, we can switch the typedef
for our own struct.

I'm going to try the simpler approach and put it to review for comparison.

With regards

-- 
"It can be done in C++" says nothing. "It can be done in C++ easily" says nobody.

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20121116/eb299091/attachment.bin>


More information about the bind10-dev mailing list