[mlpack-git] master, mlpack-1.0.x: Remove using directive that has been there for six years. Sigh... (1d8bfc6)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:44:48 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 1d8bfc664997cb860886278f93d880df181769bc
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Feb 28 01:48:03 2014 +0000

    Remove using directive that has been there for six years.  Sigh...


>---------------------------------------------------------------

1d8bfc664997cb860886278f93d880df181769bc
 src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp b/src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp
index 3c1c697..a2a3348 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp
@@ -12,7 +12,8 @@
 
 #include "neighbor_search_rules.hpp"
 
-using namespace mlpack::neighbor;
+namespace mlpack {
+namespace neighbor {
 
 // Construct the object.
 template<typename SortPolicy, typename MetricType, typename TreeType>
@@ -322,4 +323,7 @@ std::string NeighborSearch<SortPolicy, MetricType, TreeType>::ToString() const
   return convert.str();
 }
 
+}; // namespace neighbor
+}; // namespace mlpack
+
 #endif



More information about the mlpack-git mailing list