/*
- * 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.
// 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
{
* functions and regular functions.
* If this assert fails, please implement the template specialisation for C functions.
*/
-void Function() { }
-DALI_COMPILE_TIME_ASSERT( sizeof(void*) == sizeof(&Function) );
+static_assert( sizeof(void*) == sizeof( &FunctorDispatcher<void>::Dispatch ), "Need to implement template specialisation for C functions" );
}
FunctorDelegate::~FunctorDelegate()