From edb845c4aa8c862ad8be38dfe761b6edc718611e Mon Sep 17 00:00:00 2001 From: anb0s Date: Tue, 3 Dec 2019 20:21:32 +0100 Subject: [PATCH] fixes #5 basic_demo.cpp:13:12: error: 'template class vdk::signal' conflicts with a previous declaration #5 https://github.com/vdksoft/signals/issues/5 --- demo/basic_demo.cpp | 4 +--- demo/cross_thread_calls.cpp | 3 +-- demo/track_objects.cpp | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/demo/basic_demo.cpp b/demo/basic_demo.cpp index 8613c09..b86ba4d 100644 --- a/demo/basic_demo.cpp +++ b/demo/basic_demo.cpp @@ -10,8 +10,6 @@ // (thread-safe) and 'lite' (single-threaded) versions of signals. // Therefore, vdk::lite::signal can be used instead of vdk::signal. -using vdk::signal; - namespace { void function(int arg) @@ -52,7 +50,7 @@ class demo_class void signals_basic_demo() { // Create a signal with no connected slots - signal sig; + vdk::signal sig; // Connect the signal to a function sig.connect(function); diff --git a/demo/cross_thread_calls.cpp b/demo/cross_thread_calls.cpp index 1465d3b..ed169f1 100644 --- a/demo/cross_thread_calls.cpp +++ b/demo/cross_thread_calls.cpp @@ -10,7 +10,6 @@ #include "demo.h" using std::string; -using vdk::signal; using vdk::context; using vdk::exec; using vdk::signals_execute; @@ -65,7 +64,7 @@ void signals_cross_thread_calls() // In order to receive cross-thread signal emissions that thread // must call signals_execute() in a loop. - signal sig; + vdk::signal sig; // Flag is used here for simple start synchronization std::atomic_bool flag = false; diff --git a/demo/track_objects.cpp b/demo/track_objects.cpp index 0d85445..5300cf3 100644 --- a/demo/track_objects.cpp +++ b/demo/track_objects.cpp @@ -12,7 +12,6 @@ // vdk::lite::context instead of vdk::context. using std::string; -using vdk::signal; using vdk::context; namespace @@ -63,7 +62,7 @@ class demo_class : public context void signals_track_objects() { - signal sig; + vdk::signal sig; { // This object provides a context for slot invocations, so it