/// Class constructor.
OptionDataParser(const std::string&)
: options_(NULL),
- option_descriptor_(OptionPtr(), false) { }
+ // initialize option to NULL ptr
+ option_descriptor_(false) { }
/// @brief Parses the single option data.
///
/// @param persist if true option is always sent.
OptionDescriptor(OptionPtr& opt, bool persist)
: option(opt), persistent(persist) {};
+
+ /// @brief Constructor
+ ///
+ /// @param persist if true option is always sent.
+ OptionDescriptor(bool persist)
+ : option(OptionPtr()), persistent(persist) {};
};
/// @brief Extractor class to extract key with another key.