From 8ed57c07ee02b0e5759cc28fdf609d12b8cf438c Mon Sep 17 00:00:00 2001 From: Jihun Ha Date: Mon, 7 Mar 2016 17:00:42 +0900 Subject: [PATCH] Fix a problem in SceneCollectionResource.cpp file for 64bit environment I found when a capture paramter in LAMDA operation is a reference type, an unexpected error happens. So I've changed it to the parameter to be copied. Change-Id: Id4b7ef68d85d0800df84331210c85fa035441229 Signed-off-by: Jihun Ha Reviewed-on: https://gerrit.iotivity.org/gerrit/5483 Reviewed-by: JungHo Kim Reviewed-by: Uze Choi Reviewed-by: Phil Coval Tested-by: jenkins-iotivity --- service/scene-manager/src/SceneCollectionResource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 service/scene-manager/src/SceneCollectionResource.cpp diff --git a/service/scene-manager/src/SceneCollectionResource.cpp b/service/scene-manager/src/SceneCollectionResource.cpp old mode 100644 new mode 100755 index d461556..6d23134 --- a/service/scene-manager/src/SceneCollectionResource.cpp +++ b/service/scene-manager/src/SceneCollectionResource.cpp @@ -345,9 +345,9 @@ namespace OIC auto requestKey = attributes.at(SCENE_KEY_LAST_SCENE).get(); RCSRequest req(request.getResourceObject().lock(), request.getOCRequest()); - + ptr->execute(std::string(requestKey), - [& req](int /*eCode*/) + [req](int /*eCode*/) { // TODO need to set error code. // and need to set specific attr' but this attr not to be apply to RCSResourceObject. -- 2.7.4