Skip to content

Commit

Permalink
[BUILD] Make the core library compatible with msvc 13 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored Oct 11, 2017
1 parent a0b24f4 commit 333a7c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/nnvm/tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,15 @@ struct hash<nnvm::TShape> {
} // namespace std

namespace dmlc {
// avoid low version of MSVC
#if !defined(_MSC_VER) || _MSC_VER >= 1900
template<typename T>
struct type_name_helper<nnvm::Tuple<T> > {
static inline std::string value() {
return "tuple of <" + type_name<T>() + ">";
}
};
#endif
}

#endif // NNVM_TUPLE_H_

0 comments on commit 333a7c6

Please sign in to comment.