-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//Copyright (c) 2015-2017 Emil Dotchevski and Reverge Studios, Inc. | ||
|
||
//Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/synapse/connect.hpp> | ||
|
||
namespace synapse=boost::synapse; | ||
using synapse::shared_ptr; | ||
using synapse::make_shared; | ||
|
||
namespace | ||
{ | ||
struct my_emitter_type { }; | ||
typedef struct my_signal_(*my_signal)(); | ||
} | ||
|
||
int | ||
main( int argc, char const * argv[] ) | ||
{ | ||
shared_ptr<my_emitter_type> e=make_shared<my_emitter_type>(); | ||
synapse::connect<my_signal>( e, [ ] ( ) { } ); | ||
auto connected = release(synapse::connect<synapse::meta::connected<my_signal> >( synapse::meta::emitter(), [ ]( synapse::connection &, unsigned ) { } )); | ||
exit(0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//Copyright (c) 2015-2017 Emil Dotchevski and Reverge Studios, Inc. | ||
|
||
//Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/synapse/connect.hpp> | ||
|
||
namespace synapse=boost::synapse; | ||
using synapse::shared_ptr; | ||
using synapse::make_shared; | ||
|
||
namespace | ||
{ | ||
struct my_emitter_type { }; | ||
typedef struct my_signal_(*my_signal)(); | ||
} | ||
|
||
int | ||
main( int argc, char const * argv[] ) | ||
{ | ||
shared_ptr<my_emitter_type> e=make_shared<my_emitter_type>(); | ||
synapse::connect<synapse::meta::connected<my_signal> >( synapse::meta::emitter(), [ ]( synapse::connection &, unsigned ) { } ); | ||
auto connected = release(synapse::connect<my_signal>( e, [ ] ( ) { } )); | ||
exit(0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//Copyright (c) 2015-2017 Emil Dotchevski and Reverge Studios, Inc. | ||
|
||
//Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/synapse/connect.hpp> | ||
|
||
namespace synapse=boost::synapse; | ||
using synapse::shared_ptr; | ||
using synapse::make_shared; | ||
|
||
namespace | ||
{ | ||
struct my_emitter_type { }; | ||
typedef struct my_signal_(*my_signal)(); | ||
} | ||
|
||
int | ||
main( int argc, char const * argv[] ) | ||
{ | ||
synapse::connect<synapse::meta::connected<my_signal> >( synapse::meta::emitter(), [ ]( synapse::connection &, unsigned ) { } ); | ||
shared_ptr<my_emitter_type> e=make_shared<my_emitter_type>(); | ||
auto connected = release(synapse::connect<my_signal>( e, [ ] ( ) { } )); | ||
exit(0); | ||
} |