$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Memfis (memfis+news_at_[hidden])
Date: 2006-11-15 09:42:37
What is the best practice for using boost::signal? Should the signal be
a public field? Should an accessor method be used? Should there be some
special connection methods for every signal, like the following:
private:
signal<void()> x;
public:
void connectX(const signal<void()>::slot_type& slot);
void disconnectX(const signal<void()>::slot_type& slot);
If you use boost:signal, how do you do it?
(Okay, actually connectX should return a connection object and
disconnectX should take the it as its parameter, but it's about the
general idea)
-- Memfis