Parcourir la source

[2433] Make the zone checker test compile

GCC requires the method passed to boost::bind to be public (not sure if
it is a bug or required by standard, but this way it compiles and it
doesn't expose anything anyway, since the class definition is in .cc).
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
1f01111051
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/lib/dns/tests/zone_checker_unittest.cc

+ 2 - 0
src/lib/dns/tests/zone_checker_unittest.cc

@@ -63,6 +63,7 @@ protected:
         rrsets_.reset(new RRsetCollection(ss, zname_, zclass_));
     }
 
+public:
     void callback(const std::string& reason, bool is_error) {
         if (is_error) {
             errors_.push_back(reason);
@@ -71,6 +72,7 @@ protected:
         }
     }
 
+protected:
     // Check stored issue messages with expected ones.  Clear vectors so
     // the caller can check other cases.
     void checkIssues() {