Fix compile error in g++5.4 (#286)

This commit is contained in:
yingshengBD 2022-02-11 08:20:05 +08:00 committed by GitHub
parent 7c1a00213b
commit f80e1b196f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ struct CompileOptionImpl {
// string: readable name; bool: setup or not; bool: value if setup; bool: default value if not setup; // string: readable name; bool: setup or not; bool: value if setup; bool: default value if not setup;
using RelaxModeType = std::tuple<std::string, bool, bool, bool>; using RelaxModeType = std::tuple<std::string, bool, bool, bool>;
CompileOptionImpl() { CompileOptionImpl() {
relax_mode_ = {std::string("RelaxMode"), false, false, false}; relax_mode_ = RelaxModeType(std::string("RelaxMode"), false, false, false);
} }
bool RelaxMode() const { bool RelaxMode() const {
@ -57,4 +57,4 @@ bool CompileOption::setRelaxMode(bool enable) {
return this->impl_->RelaxMode() = enable; return this->impl_->RelaxMode() = enable;
} }
} // namespace vx } // namespace vx
} // namespace tim } // namespace tim