[mlpack-git] master: Nope, turns out I am wrong. C++03, C++11, and C++14 all assume a program reaching the end of main() without returning anything will return 0. (b0ba1b4)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:03:27 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit b0ba1b4ff533df42e8cb0902969621cc5b9cf912
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Nov 18 21:53:18 2014 +0000
Nope, turns out I am wrong. C++03, C++11, and C++14 all assume a program
reaching the end of main() without returning anything will return 0.
>---------------------------------------------------------------
b0ba1b4ff533df42e8cb0902969621cc5b9cf912
src/mlpack/methods/pca/pca_main.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/mlpack/methods/pca/pca_main.cpp b/src/mlpack/methods/pca/pca_main.cpp
index 422b2a6..6277c5b 100644
--- a/src/mlpack/methods/pca/pca_main.cpp
+++ b/src/mlpack/methods/pca/pca_main.cpp
@@ -80,6 +80,4 @@ int main(int argc, char** argv)
// Now save the results.
string outputFile = CLI::GetParam<string>("output_file");
data::Save(outputFile, dataset);
-
- return 0;
}
More information about the mlpack-git
mailing list