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 <[email protected]> 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
> [email protected]
> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack

_______________________________________________
mlpack mailing list
[email protected]
http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack

Reply via email to