[mlpack-git] master: Add header guards. (81a895a)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Jan 12 11:17:44 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/22bbb89eae5ef8f08b61539865a0beeabe345b34...3ad083bcbf243915de035eead1b0772ac3f35dee

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

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

    Add header guards.


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

81a895a7aeabf405ec2248d2a3796809b3b2728e
 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