[mlpack-git] master: Add header guards. (96d437b)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Apr 29 14:43:39 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ee384655c4462e422e343e9725437fd772ca4449...182d4a629c1b23f683dff7b284844e4e3e9f5cc4

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

commit 96d437be6dd103e26a64f673bdce1b307cf2ceb1
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Mar 27 17:06:41 2015 +0000

    Add header guards.


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

96d437be6dd103e26a64f673bdce1b307cf2ceb1
 src/mlpack/methods/mean_shift/mean_shift_impl.hpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
index da6f05c..b769190 100644
--- a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
+++ b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
@@ -2,17 +2,19 @@
  * @file mean_shift_impl.hpp
  * @author Shangtong Zhang
  *
- * Mean Shift clustering
+ * Mean shift clustering implementation.
  */
+#ifndef __MLPACK_METHODS_MEAN_SHIFT_MEAN_SHIFT_IMPL_HPP
+#define __MLPACK_METHODS_MEAN_SHIFT_MEAN_SHIFT_IMPL_HPP
 
-#include "mean_shift.hpp"
 #include <mlpack/core/kernels/gaussian_kernel.hpp>
 #include <mlpack/core/kernels/kernel_traits.hpp>
 #include <mlpack/core/metrics/lmetric.hpp>
 #include <mlpack/methods/neighbor_search/neighbor_search.hpp>
 #include <mlpack/methods/neighbor_search/neighbor_search_stat.hpp>
 
-
+// In case it hasn't been included yet.
+#include "mean_shift.hpp"
 
 namespace mlpack {
 namespace meanshift {
@@ -187,6 +189,7 @@ Cluster(const MatType& data,
 
 }
 
-}; // namespace meanshift
-}; // namespace mlpack
+} // namespace meanshift
+} // namespace mlpack
 
+#endif



More information about the mlpack-git mailing list