summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Eischer <r.eischer@certec.at>2015-03-06 16:41:22 +0100
committerRoland Eischer <r.eischer@certec.at>2015-03-06 16:41:22 +0100
commitc430d2354cdf7df6265e454e38f103f9525fa1dd (patch)
treed9dd43255f28a088089ec862d8cfc2dfe8dcd302
parent086cb94ad6aee856fd51ad8d7116f4a1c485a926 (diff)
Fixed ambiguous call (MSVC compiler)
- Re-factored operator[] access to the get() function.
-rw-r--r--include/super.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/super.h b/include/super.h
index 7b568e0..07dc4b3 100644
--- a/include/super.h
+++ b/include/super.h
@@ -44,7 +44,7 @@ public:
Value operator[](const std::string &key)
{
// convert object to a value object, and retrieve the key
- return value()[key];
+ return value().get(key);
}
/**
@@ -56,7 +56,7 @@ public:
Value operator[](const char *key)
{
// convert object to a value object, and retrieve the key
- return value()[key];
+ return value().get(key);
}
/**