From 9771baae369a72e196e0fbbdadbce3b1dc30ac37 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Sun, 5 Jul 2015 17:18:32 +0200 Subject: Fix conflicting overload of operator[] --- include/value.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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& get_ptr(); const std::unique_ptr& get_ptr() const; -- cgit 0.0.5-2-1-g0f52