[mlpack-git] [mlpack] Fix build failure with clang (MacOS) (#446)

Trung notifications at github.com
Wed Aug 5 12:04:08 EDT 2015


Template declaration duplication, which is fine with `gcc` but raises error with `clang`.
For example:
```
mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp:231:28:
error: declaration of 'BoundType' shadows template parameter
template<typename BoundType, typename MatType> class SplitType>
```
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/446

-- Commit Summary --

  * Fix build failure with clang.

-- File Changes --

    M src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp (2)
    M src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp (54)
    M src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser.hpp (2)
    M src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp (6)
    M src/mlpack/core/tree/binary_space_tree/dual_tree_traverser.hpp (2)
    M src/mlpack/core/tree/binary_space_tree/dual_tree_traverser_impl.hpp (4)
    M src/mlpack/core/tree/binary_space_tree/single_tree_traverser.hpp (2)
    M src/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp (4)
    M src/mlpack/core/tree/binary_space_tree/traits.hpp (2)
    M src/mlpack/methods/emst/dtb.hpp (2)
    M src/mlpack/methods/emst/dtb_impl.hpp (20)
    M src/mlpack/methods/fastmks/fastmks.hpp (2)
    M src/mlpack/methods/fastmks/fastmks_impl.hpp (18)
    M src/mlpack/methods/kmeans/dual_tree_kmeans.hpp (2)
    M src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp (14)
    M src/mlpack/methods/neighbor_search/neighbor_search.hpp (2)
    M src/mlpack/methods/neighbor_search/neighbor_search_impl.hpp (14)
    M src/mlpack/methods/range_search/range_search.hpp (2)
    M src/mlpack/methods/range_search/range_search_impl.hpp (14)
    M src/mlpack/methods/rann/ra_search.hpp (2)
    M src/mlpack/methods/rann/ra_search_impl.hpp (16)
    M src/mlpack/tests/layer_traits_test.cpp (6)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/446.patch
https://github.com/mlpack/mlpack/pull/446.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/446
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150805/acfd402d/attachment.html>


More information about the mlpack-git mailing list