Actions
Bug #1681
closedData can be implicitly converted to Certificate
Start date:
06/19/2014
Due date:
% Done:
100%
Estimated time:
Description
Certificate::Certificate(const Data&) constructor is missing "explicit" marker, making it possible to implicitly convert Data packet to Certificate.
This problem highlighted itself in NLSR, due to missing declaration of operator<<(std::ostream&, const Data&)
. When there was an attempt to print out Data packet to output stream, c++ implicitly (and completely wrongly) converted Data packet and used operator<<(std::ostream&, const Certificate&)
, which caused the failure.
Actions