[IOT-2251] Resolve getValue() & setValue() APIs for argument string, Attribute Value
authorMushfiqu Islam Antu <i.mushfiq@samsung.com>
Sun, 14 May 2017 13:38:48 +0000 (19:38 +0600)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 15 May 2017 07:58:18 +0000 (07:58 +0000)
getValue() & setValue() APIs returned "no matching function argument" while being callled with the argument: string, AttributeValue
Previously this worked fine, this problem is being generated because of the commit:
https://gerrit.iotivity.org/gerrit/#/c/19585

Change-Id: Ibcf7d6f1d7e65a32ee7113ddaec958ab8073aa07
Signed-off-by: Mushfiqu Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19901
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/include/AttributeValue.h
resource/include/OCRepresentation.h

index 319743d..8fbf36a 100644 (file)
@@ -49,6 +49,7 @@ namespace OC
     static const int AttributeValueNullIndex = 0;
     typedef boost::variant<
         NullType, // Note: this handles the null-type and must match the above static const
+        int,
         int64_t,
         double,
         bool,
index 64d0ff1..c5d1f39 100644 (file)
@@ -116,6 +116,7 @@ namespace OC
                 std::is_same<typename std::remove_cv<typename std::remove_reference<T>::type>::type, std::vector<std::vector<OCByteString>>>::value ||
                 std::is_same<typename std::remove_cv<typename std::remove_reference<T>::type>::type, std::vector<std::vector<std::vector<OCByteString>>>>::value ||
                 std::is_same<typename std::remove_cv<typename std::remove_reference<T>::type>::type, std::vector<uint8_t>>::value ||
+                std::is_same<typename std::remove_cv<typename std::remove_reference<T>::type>::type, AttributeValue>::value ||
                 std::is_same<typename std::remove_cv<typename std::remove_reference<T>::type>::type, NullType>::value;
         };