From: Pawel Winogrodzki Date: Wed, 29 Mar 2017 01:00:30 +0000 (-0700) Subject: IOT-1583: Removing boost usage from stack sample. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94b86083c1f59b9fab19538488ea6c9f08c3b3d1;p=contrib%2Fiotivity.git IOT-1583: Removing boost usage from stack sample. There is no need to have an additional dependency on boost for the sake of this sample. Change-Id: I4bc65730aebb62f5b3d0e9edc0ff9ff8ae16a7e2 Signed-off-by: Pawel Winogrodzki Reviewed-on: https://gerrit.iotivity.org/gerrit/18307 Reviewed-by: Alex Kelley Tested-by: jenkins-iotivity Reviewed-by: Mike Fenelon Reviewed-by: Dan Mihai --- diff --git a/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverslow.cpp b/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverslow.cpp index 913234e..47355ea 100644 --- a/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverslow.cpp +++ b/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverslow.cpp @@ -36,7 +36,6 @@ #ifdef HAVE_SYS_TIME_H #include #endif -#include #include #include "ocstack.h" #include "oic_malloc.h" @@ -49,11 +48,11 @@ volatile sig_atomic_t gQuitFlag = 0; static std::list gRequestList; -BOOST_STATIC_CONSTEXPR unsigned int SLOW_RESPONSE_DELAY_SEC = 5; +static const unsigned int SLOW_RESPONSE_DELAY_SEC = 5; static LEDResource LED; -BOOST_STATIC_CONSTEXPR unsigned int SAMPLE_MAX_NUM_POST_INSTANCE = 2; +static const unsigned int SAMPLE_MAX_NUM_POST_INSTANCE = 2; static LEDResource gLedInstance[SAMPLE_MAX_NUM_POST_INSTANCE]; //char *gResourceUri= const_cast("/a/led");