[mlpack-git] master: Add header guards. (78f4ec6)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:11:52 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit 78f4ec6a3be065ebdaa6d5c7929be8aae4c9e6db
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Jan 12 11:05:42 2015 -0500

    Add header guards.


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

78f4ec6a3be065ebdaa6d5c7929be8aae4c9e6db
 src/mlpack/methods/cf/cf_impl.hpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/methods/cf/cf_impl.hpp b/src/mlpack/methods/cf/cf_impl.hpp
index e603942..2f670ed 100644
--- a/src/mlpack/methods/cf/cf_impl.hpp
+++ b/src/mlpack/methods/cf/cf_impl.hpp
@@ -1,5 +1,5 @@
 /**
- * @file cf.cpp
+ * @file cf_impl.hpp
  * @author Mudit Raj Gupta
  * @author Sumedh Ghaisas
  *
@@ -8,6 +8,11 @@
  * Implementation of CF class to perform Collaborative Filtering on the
  * specified data set.
  */
+#ifndef __MLPACK_METHODS_CF_CF_IMPL_HPP
+#define __MLPACK_METHODS_CF_CF_IMPL_HPP
+
+// In case it hasn't been included yet.
+#include "cf.hpp"
 
 namespace mlpack {
 namespace cf {
@@ -263,3 +268,5 @@ std::string CF<FactorizerType>::ToString() const
 
 }; // namespace mlpack
 }; // namespace cf
+
+#endif



More information about the mlpack-git mailing list