This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17501] Failing to compile code using boost bind/signal
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2004 14:08:47 -0000
- Subject: [Bug c++/17501] Failing to compile code using boost bind/signal
- References: <20040915150453.17501.larsbj@gullik.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-16 14:08 -------
I probably need some help from people knowing boost::signals better than me:
There are three overloads of the get_inspectable_slot function:
template<typename F>
const F&
get_inspectable_slot(const F& f, signals::detail::signal_tag);
template<typename F>
const F&
get_inspectable_slot(const reference_wrapper<F>& f,
signals::detail::reference_tag);
template<typename F>
const F&
get_inspectable_slot(const F& f, signals::detail::value_tag);
The call that fails looks like this:
signals::get_inspectable_slot(f, signals::tag_type(f));
where signals::tag_type(f) returns an object of type
boost::signals::detail::reference_tag
With that, it is clear that no overload matches.
HOWEVER: with a gcc 3.4, signals::tag_type(f) returns an object of
type
boost::signals::detail::value_tag
for which we have a matching overload. I should try next to figure out
why this is so.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17501