Fix MSVC build error with container.h (#4455)
authorjmorrill <jeremiah.morrill@gmail.com>
Tue, 3 Dec 2019 17:52:00 +0000 (09:52 -0800)
committerTianqi Chen <tqchen@users.noreply.github.com>
Tue, 3 Dec 2019 17:52:00 +0000 (09:52 -0800)
include/tvm/runtime/container.h

index 2714ac2..dbe8278 100644 (file)
@@ -198,7 +198,7 @@ class ADTObj : public Object, public InplaceArrayBase<ADTObj, ObjectRef> {
   }
 
   friend class ADT;
-  friend class InplaceArrayBase;
+  friend InplaceArrayBase<ADTObj, ObjectRef>;
 };
 
 /*! \brief reference to algebraic data type objects. */