#include <iostream>
{
public:
{
.
event( [](mhood_t<msg_hello>) {
std::cout << "hello from the default mbox" << std::endl;
} )
.event( [this](mhood_t<msg_bye>) {
} );
.
event( [](mhood_t<msg_hello>) {
std::cout << "hello from a new direct mbox" << std::endl;
} );
so_5::send< msg_hello >( *this );
so_5::send< msg_hello >( another );
so_5::send< msg_bye >( *this );
}
};
int main()
{
try
{
{
} );
}
catch( const std::exception & ex )
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}