[mlpack-git] master: Remove ambiguity in constructors. (a6e389f)
gitdub at mlpack.org
gitdub at mlpack.org
Sat Aug 20 14:56:06 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/3274b05fcc545c3b36f783316fea2e22f79c3d03...1c77230c7d3b9c45fb102cd3c632d9c7248e085e
>---------------------------------------------------------------
commit a6e389f124264902e79301cd9b93fe56a00229b5
Author: MarcosPividori <marcos.pividori at gmail.com>
Date: Tue Aug 16 00:52:33 2016 -0300
Remove ambiguity in constructors.
>---------------------------------------------------------------
a6e389f124264902e79301cd9b93fe56a00229b5
src/mlpack/methods/neighbor_search/neighbor_search.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/methods/neighbor_search/neighbor_search.hpp b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
index ec088e5..88daf5f 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
@@ -190,7 +190,7 @@ class NeighborSearch
* @param metric An optional instance of the MetricType class.
*/
NeighborSearch(const MatType& referenceSet,
- const bool naive = false,
+ const bool naive,
const bool singleMode = false,
const double epsilon = 0,
const MetricType metric = MetricType());
@@ -218,7 +218,7 @@ class NeighborSearch
* @param metric An optional instance of the MetricType class.
*/
NeighborSearch(MatType&& referenceSet,
- const bool naive = false,
+ const bool naive,
const bool singleMode = false,
const double epsilon = 0,
const MetricType metric = MetricType());
@@ -252,7 +252,7 @@ class NeighborSearch
* @param metric Instantiated distance metric.
*/
NeighborSearch(Tree* referenceTree,
- const bool singleMode = false,
+ const bool singleMode,
const double epsilon = 0,
const MetricType metric = MetricType());
@@ -269,7 +269,7 @@ class NeighborSearch
* @param epsilon Relative approximate error (non-negative).
* @param metric Instantiated metric.
*/
- NeighborSearch(const bool naive = false,
+ NeighborSearch(const bool naive,
const bool singleMode = false,
const double epsilon = 0,
const MetricType metric = MetricType());
More information about the mlpack-git
mailing list