Skip to content

Commit

Permalink
SERVER-19749 add const char* overload for moe::Value constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
amidvidy committed Aug 5, 2015
1 parent 512ae2b commit d56b180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mongo/util/options_parser/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Value {
explicit Value(int val) : _intVal(val), _type(Int) {}
explicit Value(long val) : _longVal(val), _type(Long) {}
explicit Value(std::string val) : _stringVal(val), _type(String) {}
explicit Value(const char* val) : _stringVal(val), _type(String) {}
explicit Value(unsigned long long val) : _unsignedLongLongVal(val), _type(UnsignedLongLong) {}
explicit Value(unsigned val) : _unsignedVal(val), _type(Unsigned) {}

Expand Down

0 comments on commit d56b180

Please sign in to comment.