Commit a0c813b2 by Yang Chen Committed by Tianqi Chen

initialize base class in copy constructors (#2006)

GCC issues warnings with -Wextra if we don't explicitly initialize
base class in copy constructors. This commit fixed the issue.
parent e6e9b371
......@@ -603,7 +603,7 @@ class TVMRetValue : public TVMPODValue_ {
using TVMPODValue_::operator TVMContext;
using TVMPODValue_::operator NDArray;
// Disable copy and assign from another value, but allow move.
TVMRetValue(const TVMRetValue& other) {
TVMRetValue(const TVMRetValue& other) : TVMPODValue_() {
this->Assign(other);
}
// conversion operators
......
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