BIND 10 trac2312, updated. 2c10fa4964550d7402ee0fc93401f8ad39f29e87 [2312] Add std namespace before distance.
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 28 18:53:32 UTC 2012
The branch, trac2312 has been updated
via 2c10fa4964550d7402ee0fc93401f8ad39f29e87 (commit)
from c3e696cb4ba09b3cd53842d684f98262cf0cee7a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2c10fa4964550d7402ee0fc93401f8ad39f29e87
Author: Marcin Siodelski <marcin at isc.org>
Date: Wed Nov 28 19:52:53 2012 +0100
[2312] Add std namespace before distance.
If omitted the build fails on Solaris complaining that distance is unknown.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/option_custom.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/option_custom.cc b/src/lib/dhcp/option_custom.cc
index 6bc8714..e5bc43c 100644
--- a/src/lib/dhcp/option_custom.cc
+++ b/src/lib/dhcp/option_custom.cc
@@ -334,8 +334,9 @@ std::string OptionCustom::toText(int indent) {
for (int j = 0; j < indent + 2; ++j) {
tmp << " ";
}
- tmp << "#" << distance(fields.begin(), field) << " "
- << dataFieldToText(*field, distance(fields.begin(), field))
+ tmp << "#" << std::distance(fields.begin(), field) << " "
+ << dataFieldToText(*field, std::distance(fields.begin(),
+ field))
<< std::endl;
}
} else {
More information about the bind10-changes
mailing list