Commit 05671f38 authored by Mushfiqu Islam Antu's avatar Mushfiqu Islam Antu Committed by Ashok Babu Channa

[IOT-2251] Resolve getValue() & setValue() APIs for argument string, Attribute Value

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: default avatarMushfiqu Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19901Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Reviewed-by: default avatarAshok Babu Channa <ashok.channa@samsung.com>
parent 01c9d09f
......@@ -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,
......
......@@ -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;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment