Fix Serialize for custom types accepted/tizen/3.0/common/20170214.180309 accepted/tizen/3.0/ivi/20170213.225123 accepted/tizen/3.0/mobile/20170213.225048 accepted/tizen/3.0/tv/20170213.225059 accepted/tizen/3.0/wearable/20170213.225107 submit/tizen_3.0/20170209.042219 submit/tizen_3.0/20170213.041614
authorZofia Abramowska <z.abramowska@samsung.com>
Tue, 24 Jan 2017 16:45:25 +0000 (17:45 +0100)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 1 Feb 2017 10:35:10 +0000 (19:35 +0900)
visitInternal didn't take const reference to reflectable type

Change-Id: Ic8501ae93c502fc2a58f2f3c6cda2f6b6cc1bed8

include/klay/serialize.h

index a8df1388bc59fdae593665c2eaa5f1ca12ea7912..461882c854162fe20b4cd5609a33c6c67f9a35f0 100644 (file)
@@ -75,7 +75,7 @@ private:
        }
 
        template<typename DataType, typename std::enable_if<::IsReflectable<DataType>::value, int>::type = 0>
-       void visitInternal(DataType& value)
+       void visitInternal(const DataType& value)
        {
                value.accept(*this);
        }