From: Marcin Siodelski Date: Tue, 23 Oct 2012 13:51:15 +0000 (+0200) Subject: [2316] Replace constructor with default param values with constructor X-Git-Tag: trac2402_base^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c12b4328d0c49d039abc56ee22e09f8ca431647;p=thirdparty%2Fkea.git [2316] Replace constructor with default param values with constructor without parameters. Having constructor with default params values caused build issues on Mac/clang which complained about not providing constructor's params and ignores default ones. --- diff --git a/src/lib/dhcp/subnet.h b/src/lib/dhcp/subnet.h index 21708c53de..df9c6af703 100644 --- a/src/lib/dhcp/subnet.h +++ b/src/lib/dhcp/subnet.h @@ -96,12 +96,8 @@ public: typedef typename KeyExtractor1::result_type result_type; /// @brief Constructor. - /// - /// @param key1 first key extractor - /// @param key2 second key extractor - KeyFromKey(const KeyExtractor1 key1 = KeyExtractor1(), - const KeyExtractor2 key2 = KeyExtractor2()) - : key1_(key1), key2_(key2) { }; + KeyFromKey() + : key1_(KeyExtractor1()), key2_(KeyExtractor2()) { }; /// @brief Extract key with another key. ///