Skip to content

Commit

Permalink
Merge pull request #34 from antinucleon/master
Browse files Browse the repository at this point in the history
fix const
  • Loading branch information
antinucleon committed Aug 17, 2015
2 parents 4f9cd56 + 77a1a0d commit e9b5cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dmlc/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class FieldEntry<int>
// parent
typedef FieldEntryNumeric<FieldEntry<int>, int> Parent;
// override set
virtual void Set(void *head, const std::string &value) {
virtual void Set(void *head, const std::string &value) const {
if (is_enum_) {
std::map<std::string, int>::const_iterator it = enum_map_.find(value);
std::ostringstream os;
Expand Down Expand Up @@ -477,7 +477,7 @@ class FieldEntry<std::string>
// parent class
typedef FieldEntryBase<FieldEntry<std::string>, std::string> Parent;
// override set
virtual void Set(void *head, const std::string &value) {
virtual void Set(void *head, const std::string &value) const {
this->Get(head) = value;
this->Check(head);
}
Expand Down

0 comments on commit e9b5cdb

Please sign in to comment.