[mlpack] c++14
Marcus Edel
marcus.edel at fu-berlin.de
Sat Jun 24 05:50:38 EDT 2017
Hello Kirill,
you are right std::enable_if_t is part of c++14, but since mlpack doesn't
require a c++14 compatible compiler the feature was backported in prereqs.hpp.
Here is the snippet:
#if __cplusplus <= 201103L
#if !defined(_MSC_VER) || _MSC_VER <= 1800
namespace std {
template<bool B, class T = void>
using enable_if_t = typename enable_if<B, T>::type;
}
#endif
#endif
Thanks,
Marcus
> On 24. Jun 2017, at 07:07, Kirill Mishchenko <ki.mishchenko at gmail.com> wrote:
>
> I have noticed that in the decision tree implementation (src/mlpack/methods/decision_tree/decision_tree_impl.hpp) the template alias std::enable_if_t is used, which is a part of c++14. Does it mean that mlpack have been switched to c++14?
>
> Best regards,
>
> Kirill Mishchenko
>
>
>
> _______________________________________________
> mlpack mailing list
> mlpack at lists.mlpack.org
> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20170624/9e10a9f3/attachment.html>
More information about the mlpack
mailing list