BIND 10 master, updated. 30e71e8bfdb6049265dca14a8ce62b989fe67118 [master] introduce a temporary variable to work around some build failure
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 11 18:52:53 UTC 2013
The branch, master has been updated
via 30e71e8bfdb6049265dca14a8ce62b989fe67118 (commit)
from a032d84ef41ca563063fa15ad34250f87c05eb65 (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 30e71e8bfdb6049265dca14a8ce62b989fe67118
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri Jan 11 10:51:29 2013 -0800
[master] introduce a temporary variable to work around some build failure
some compilers seem to be confused if we directly call a method
on the result of dynamic_cast. I suspect it's a bug of the compiler in
template handling, but the workaround doesn't look so messy and I think
it's acceptable.
committing at my discretion.
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/tests/database_unittest.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/database_unittest.cc b/src/lib/datasrc/tests/database_unittest.cc
index 06b3874..3a97cb5 100644
--- a/src/lib/datasrc/tests/database_unittest.cc
+++ b/src/lib/datasrc/tests/database_unittest.cc
@@ -1322,8 +1322,11 @@ public:
// Mock-only; control whether to allow subsequent transaction.
void allowMoreTransaction(bool is_allowed) {
if (is_mock_) {
- dynamic_cast<MockAccessor&>(*current_accessor_).
- allowMoreTransaction(is_allowed);
+ // Use a separate variable for MockAccessor&; some compilers
+ // would be confused otherwise.
+ MockAccessor& mock_accessor =
+ dynamic_cast<MockAccessor&>(*current_accessor_);
+ mock_accessor.allowMoreTransaction(is_allowed);
}
}
More information about the bind10-changes
mailing list