Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/dmlc/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ class FieldEntry<float> : public FieldEntryNumeric<FieldEntry<float>, float> {
os << "Invalid Parameter format for " << key_ << " expect " << type_
<< " but value=\'" << value << '\'';
throw dmlc::ParamError(os.str());
} catch (const std::out_of_range) {
} catch (const std::out_of_range&) {
std::ostringstream os;
os << "Out of range value for " << key_ << ", value=\'" << value << '\'';
throw dmlc::ParamError(os.str());
Expand All @@ -1019,7 +1019,7 @@ class FieldEntry<double>
os << "Invalid Parameter format for " << key_ << " expect " << type_
<< " but value=\'" << value << '\'';
throw dmlc::ParamError(os.str());
} catch (const std::out_of_range) {
} catch (const std::out_of_range&) {
std::ostringstream os;
os << "Out of range value for " << key_ << ", value=\'" << value << '\'';
throw dmlc::ParamError(os.str());
Expand Down