Am Thu, 4 Oct 2012 22:07:16 +0200
schrieb klaus triendl <[email protected]>:
> namespace sigc
> {
>
> // the partially specialized struct dereference_trait is essential,
> // otherwise sigc can't deduce the return type from expression
> *sigc::_1
>
> template <class T>
> struct dereference_trait<std::shared_ptr<T> >
> { typedef T type; };
>
> template <class T>
> struct dereference_trait<std::shared_ptr<T>& >
> { typedef T type; };
>
> }
sorry, the struct dereference_trait should make a reference typedef:
<code>
namespace sigc
{
// the partially specialized struct dereference_trait is essential,
// otherwise sigc can't deduce the return type from expression *sigc::_1
template <class T>
struct dereference_trait<std::shared_ptr<T> >
{ typedef T& type; };
template <class T>
struct dereference_trait<std::shared_ptr<T>& >
{ typedef T& type; };
}
</code>
greetings,
klaus
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list