Added Interest constructor with default nonce.
diff --git a/ndn-cpp/interest.hpp b/ndn-cpp/interest.hpp
index c27af5b..910dd53 100644
--- a/ndn-cpp/interest.hpp
+++ b/ndn-cpp/interest.hpp
@@ -122,18 +122,6 @@
*/
class Interest {
public:
- Interest()
- {
- construct();
- }
-
- Interest(const Name &name)
- : name_(name)
- {
- name_ = name;
- construct();
- }
-
Interest(const Name &name, int minSuffixComponents, int maxSuffixComponents,
const PublisherPublicKeyDigest &publisherPublicKeyDigest, const Exclude &exclude, int childSelector, int answerOriginKind,
int scope, double interestLifetimeMilliseconds, const std::vector<unsigned char> &nonce)
@@ -143,6 +131,27 @@
nonce_(nonce)
{
}
+
+ Interest(const Name &name, int minSuffixComponents, int maxSuffixComponents,
+ const PublisherPublicKeyDigest &publisherPublicKeyDigest, const Exclude &exclude, int childSelector, int answerOriginKind,
+ int scope, double interestLifetimeMilliseconds)
+ : name_(name), minSuffixComponents_(minSuffixComponents), maxSuffixComponents_(maxSuffixComponents),
+ publisherPublicKeyDigest_(publisherPublicKeyDigest), exclude_(exclude), childSelector_(childSelector),
+ answerOriginKind_(answerOriginKind), scope_(scope), interestLifetimeMilliseconds_(interestLifetimeMilliseconds)
+ {
+ }
+
+ Interest(const Name &name)
+ : name_(name)
+ {
+ name_ = name;
+ construct();
+ }
+
+ Interest()
+ {
+ construct();
+ }
ptr_lib::shared_ptr<std::vector<unsigned char> > wireEncode(WireFormat &wireFormat) const
{