Revert "[Tizen] Add codes for Dali Windows Backend"
[platform/core/uifw/dali-core.git] / dali / public-api / signals / functor-delegate.cpp
index 4b48cc2..8fafecd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,7 +17,9 @@
 
 // CLASS HEADER
 #include <dali/public-api/signals/functor-delegate.h>
-#include <dali/public-api/math/compile-time-assert.h>
+
+// EXTERNAL INCLUDES
+#include <type_traits>
 
 namespace Dali
 {
@@ -29,10 +31,7 @@ namespace
  * functions and regular functions.
  * If this assert fails, please implement the template specialisation for C functions.
  */
-#if !defined(EMSCRIPTEN)
-void Function() { }
-DALI_COMPILE_TIME_ASSERT( sizeof(void*) == sizeof(&Function) );
-#endif
+static_assert( sizeof(void*) == sizeof( &FunctorDispatcher<void>::Dispatch ), "Need to implement template specialisation for C functions" );
 }
 
 FunctorDelegate::~FunctorDelegate()