Skip to content

Commit

Permalink
fixes vdksoft#5
Browse files Browse the repository at this point in the history
basic_demo.cpp:13:12: error: 'template<class> class vdk::signal'
conflicts with a previous declaration vdksoft#5

vdksoft#5
  • Loading branch information
anb0s committed Dec 3, 2019
1 parent f5083f7 commit edb845c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions demo/basic_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -52,7 +50,7 @@ class demo_class
void signals_basic_demo()
{
// Create a signal with no connected slots
signal<void(int)> sig;
vdk::signal<void(int)> sig;

// Connect the signal to a function
sig.connect(function);
Expand Down
3 changes: 1 addition & 2 deletions demo/cross_thread_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "demo.h"

using std::string;
using vdk::signal;
using vdk::context;
using vdk::exec;
using vdk::signals_execute;
Expand Down Expand Up @@ -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<void(int, int)> sig;
vdk::signal<void(int, int)> sig;

// Flag is used here for simple start synchronization
std::atomic_bool flag = false;
Expand Down
3 changes: 1 addition & 2 deletions demo/track_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// vdk::lite::context instead of vdk::context.

using std::string;
using vdk::signal;
using vdk::context;

namespace
Expand Down Expand Up @@ -63,7 +62,7 @@ class demo_class : public context

void signals_track_objects()
{
signal<void(const string &)> sig;
vdk::signal<void(const string &)> sig;

{
// This object provides a context for slot invocations, so it
Expand Down

0 comments on commit edb845c

Please sign in to comment.