File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 21
21
// - Show that a slot with a C++11 lambda expression can be automatically
22
22
// disconnected when an object derived from sigc::trackable is deleted,
23
23
// provided sigc::track_obj() is used.
24
- // It's shown here as a preparation for deprecating and eventually
25
- // deleting the libsigc++ lambda expressions .
24
+ // It shows that C++11 lambda expressions can replace the libsigc++ lambda
25
+ // expressions, which have been removed .
26
26
// See https://bugzilla.gnome.org/show_bug.cgi?id=672555
27
27
// - Test the code example in the documentation in sigc++/adaptors/track_obj.h.
28
28
//
@@ -72,7 +72,8 @@ class Functor1 : public sigc::functor_base
72
72
return (i<0 ) ? " negative" : ((i>0 ) ? " positive" : " zero" );
73
73
}
74
74
75
- private:
75
+ protected:
76
+ // Don't make it private. clang++ does not like unused private data.
76
77
const bar_group4& bar_;
77
78
};
78
79
@@ -92,8 +93,10 @@ class Functor2 : public sigc::functor_base
92
93
return result;
93
94
}
94
95
95
- private:
96
+ protected:
97
+ // Don't make it private. clang++ does not like unused private data.
96
98
const bar_group4& bar_;
99
+ private:
97
100
const book& aBook_;
98
101
};
99
102
You can’t perform that action at this time.
0 commit comments