Skip to content

Commit 57556fe

Browse files
author
Krzysztof Parzyszek
authored
[Hexagon] Add default constructor to struct Optional in session.cc (#10517)
It's needed for older compilers.
1 parent 22abfc4 commit 57556fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/hexagon/rpc/simulator/session.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ struct Optional : public dmlc::optional<T> {
6262
using dmlc::optional<T>::optional;
6363
using dmlc::optional<T>::operator=;
6464
Optional(const T& val) : dmlc::optional<T>(val) {} // NOLINT(*)
65+
Optional() = default;
6566

6667
T* operator->() { return &this->operator*(); }
6768
const T* operator->() const { return &this->operator*(); }

0 commit comments

Comments
 (0)