[sigc] exception_catch seems to be unusable
- From: Philip Langdale <plangdale vmware com>
- To: libsigc-list gnome org
- Subject: [sigc] exception_catch seems to be unusable
- Date: Tue, 02 Nov 2004 16:01:54 -0800
I was trying to use the exception_catch adaptor today and it seems to be
unusable.
The implementation of visit_each in exception_catch.h access the
catcher_ member of the functor but this is marked protected so
it's not going to work and the gcc errors bear this out.
The fixes are either to make catcher_ a public member or to
make visit_each a friend. I don't see friends used anywhere
else in the code and there's actually a comment in one place
saying that something is public to avoid writing a friend
declaration for a template (as would be the case here too).
So, it seems that catcher_ should be made public.
--phil
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]