diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-10-24 15:06:44 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-11-04 11:30:34 -0500 |
commit | 0b1f32bd5e8adf5e56396f001ac97d0200146ff6 (patch) | |
tree | 20bc5d85cea048d4af95b1b2248da039688aada5 /src/mongo/util/options_parser/environment.h | |
parent | ccf75cf8300d5e050d524da82bdec03d8d6e303f (diff) | |
download | mongo-0b1f32bd5e8adf5e56396f001ac97d0200146ff6.tar.gz |
SERVER-11143 Add constraints to option registration interface
Diffstat (limited to 'src/mongo/util/options_parser/environment.h')
-rw-r--r-- | src/mongo/util/options_parser/environment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/options_parser/environment.h b/src/mongo/util/options_parser/environment.h index f7c8929814d..0e096ef40ad 100644 --- a/src/mongo/util/options_parser/environment.h +++ b/src/mongo/util/options_parser/environment.h @@ -107,7 +107,7 @@ namespace optionenvironment { * * It is an error to call these functions after "validate" has been called * - * WARNING: These take ownership of the pointer passed in + * NOTE: These DO NOT take ownership of the pointer passed in */ Status addKeyConstraint(KeyConstraint* keyConstraint); Status addConstraint(Constraint* constraint); @@ -197,8 +197,8 @@ namespace optionenvironment { void dump(); protected: - std::vector<boost::shared_ptr<Constraint> > constraints; - std::vector<boost::shared_ptr<KeyConstraint> > keyConstraints; + std::vector<Constraint*> constraints; + std::vector<KeyConstraint*> keyConstraints; std::map <Key, Value> values; std::map <Key, Value> default_values; bool valid; |