Browse Source

[master] fixed a build regression for SunStudio due to #1604. okayed on jabber.

JINMEI Tatuya 13 years ago
parent
commit
0ad8fea24b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dns/rrset.h

+ 2 - 1
src/lib/dns/rrset.h

@@ -832,7 +832,8 @@ public:
     // revisit the interface of managing RRset signatures, at which point this
     // revisit the interface of managing RRset signatures, at which point this
     // problem may go away.
     // problem may go away.
     virtual void addRRsig(const rdata::RdataPtr& rdata) {
     virtual void addRRsig(const rdata::RdataPtr& rdata) {
-        addRRsig(static_cast<const rdata::ConstRdataPtr&>(rdata));
+        // Don't try to convert as a reference here.  SunStudio will reject it.
+        addRRsig(static_cast<const rdata::ConstRdataPtr>(rdata));
     }
     }
 
 
     /// \brief Adds an RRSIG RRset to this RRset
     /// \brief Adds an RRSIG RRset to this RRset