Browse Source

add include and boost:: namespace for lexical_cast

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@734 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
2bf3412901
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/lib/dns/cpp/rdata/generic/rrsig_46.cc

+ 7 - 6
src/lib/dns/cpp/rdata/generic/rrsig_46.cc

@@ -26,6 +26,7 @@
 #include "rrttl.h"
 #include "rrttl.h"
 #include "rdata.h"
 #include "rdata.h"
 #include "rdataclass.h"
 #include "rdataclass.h"
+#include <boost/lexical_cast.hpp>
 
 
 using namespace std;
 using namespace std;
 
 
@@ -139,12 +140,12 @@ string
 RRSIG::toText() const
 RRSIG::toText() const
 {
 {
     return (impl_->covered_.toText() +
     return (impl_->covered_.toText() +
-            " " + lexical_cast<string>(static_cast<int>(impl_->algorithm_))
-            + " " + lexical_cast<string>(static_cast<int>(impl_->labels_))
-            + " " + lexical_cast<string>(impl_->originalttl_)
-            + " " + lexical_cast<string>(impl_->timeexpire_)
-            + " " + lexical_cast<string>(impl_->timeinception_)
-            + " " + lexical_cast<string>(impl_->keyid_)
+            " " + boost::lexical_cast<string>(static_cast<int>(impl_->algorithm_))
+            + " " + boost::lexical_cast<string>(static_cast<int>(impl_->labels_))
+            + " " + boost::lexical_cast<string>(impl_->originalttl_)
+            + " " + boost::lexical_cast<string>(impl_->timeexpire_)
+            + " " + boost::lexical_cast<string>(impl_->timeinception_)
+            + " " + boost::lexical_cast<string>(impl_->keyid_)
             + " " + impl_->signer_.toText()
             + " " + impl_->signer_.toText()
             + " " + encodeBase64(impl_->signature_));
             + " " + encodeBase64(impl_->signature_));
 }
 }