Commit 4dea1502 by Tianqi Chen

[BUILD] Make the core library compatible with msvc 13 (#167)

parent a1404e23
...@@ -611,12 +611,15 @@ struct hash<nnvm::TShape> { ...@@ -611,12 +611,15 @@ struct hash<nnvm::TShape> {
} // namespace std } // namespace std
namespace dmlc { namespace dmlc {
// avoid low version of MSVC
#if !defined(_MSC_VER) || _MSC_VER >= 1900
template<typename T> template<typename T>
struct type_name_helper<nnvm::Tuple<T> > { struct type_name_helper<nnvm::Tuple<T> > {
static inline std::string value() { static inline std::string value() {
return "tuple of <" + type_name<T>() + ">"; return "tuple of <" + type_name<T>() + ">";
} }
}; };
#endif
} }
#endif // NNVM_TUPLE_H_ #endif // NNVM_TUPLE_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment