[mlpack-git] master: Fix namespace ambiguity which causes a build failure on Windows. (4fa67e5)

gitdub at mlpack.org gitdub at mlpack.org
Mon Mar 7 15:15:07 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/a3a46561da67b99e38536f8b5824df9603a29f53...4fa67e53b1169bf10a00cd17e6b501adaaa448c8

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

commit 4fa67e53b1169bf10a00cd17e6b501adaaa448c8
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Mar 7 15:15:07 2016 -0500

    Fix namespace ambiguity which causes a build failure on Windows.
    
    This was caught by the new AppVeyor setup less than one day after it was
    deployed, so, that was definitely worth setting up!


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

4fa67e53b1169bf10a00cd17e6b501adaaa448c8
 src/mlpack/tests/hoeffding_tree_test.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/tests/hoeffding_tree_test.cpp b/src/mlpack/tests/hoeffding_tree_test.cpp
index ff5e147..c060267 100644
--- a/src/mlpack/tests/hoeffding_tree_test.cpp
+++ b/src/mlpack/tests/hoeffding_tree_test.cpp
@@ -903,8 +903,9 @@ BOOST_AUTO_TEST_CASE(BatchTrainingTest)
   for (size_t i = 0; i < 10000; ++i)
   {
     // One circle every 20000 samples.  Plus some noise.
-    const double magnitude = 2.0 + (double(i) / 20000.0) + 0.5 * math::Random();
-    const double angle = (i % 20000) * (2 * M_PI) + math::Random();
+    const double magnitude = 2.0 + (double(i) / 20000.0) +
+        0.5 * mlpack::math::Random();
+    const double angle = (i % 20000) * (2 * M_PI) + mlpack::math::Random();
 
     const double x = magnitude * cos(angle);
     const double y = magnitude * sin(angle);




More information about the mlpack-git mailing list