diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-05 17:18:32 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-05 17:18:32 +0200 |
| commit | 9771baae369a72e196e0fbbdadbce3b1dc30ac37 (patch) | |
| tree | c995ca49a9a17e5bbb7d73cdaf54940622daf03d /include/value.h | |
| parent | 044752a36b076a59ee4cf5f6fef9d782acc0c5f0 (diff) | |
| download | Project-Tick-9771baae369a72e196e0fbbdadbce3b1dc30ac37.tar.gz Project-Tick-9771baae369a72e196e0fbbdadbce3b1dc30ac37.zip | |
Fix conflicting overload of operator[]
Diffstat (limited to 'include/value.h')
| -rw-r--r-- | include/value.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/value.h b/include/value.h index 5076bb4ed5..c029e1ecad 100644 --- a/include/value.h +++ b/include/value.h @@ -115,6 +115,7 @@ public: * @sa tag_compound::operator[] */ value& operator[](const std::string& key); + value& operator[](const char* key); //need this overload because of conflict with built-in operator[] std::unique_ptr<tag>& get_ptr(); const std::unique_ptr<tag>& get_ptr() const; |
