Browse Source

[trac117] Add two boost:: to compile with g++

Michal 'vorner' Vaner 14 years ago
parent
commit
ae9a05a4c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/rdata/generic/nsec3_50.cc

+ 2 - 2
src/lib/dns/rdata/generic/nsec3_50.cc

@@ -80,8 +80,8 @@ NSEC3::NSEC3(const string& nsec3_str) :
     // between iteration and salt, we extract this field as string and convert
     // to integer.
     try {
-        iterations = lexical_cast<unsigned int>(iterations_str);
-    } catch (const bad_lexical_cast&) {
+        iterations = boost::lexical_cast<unsigned int>(iterations_str);
+    } catch (const boost::bad_lexical_cast&) {
         isc_throw(InvalidRdataText, "Bad NSEC3 iteration: " << iterations_str);
     }
     if (iterations > 0xffff) {