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
//
@@ -63,7 +63,8 @@ class Functor1
63
63
64
64
std::string operator ()(int i) { return (i < 0 ) ? " negative" : ((i > 0 ) ? " positive" : " zero" ); }
65
65
66
- private:
66
+ protected:
67
+ // Don't make it private. clang++ does not like unused private data.
67
68
const bar_group4& bar_;
68
69
};
69
70
@@ -82,8 +83,10 @@ class Functor2
82
83
return result;
83
84
}
84
85
85
- private:
86
+ protected:
87
+ // Don't make it private. clang++ does not like unused private data.
86
88
const bar_group4& bar_;
89
+ private:
87
90
const book& aBook_;
88
91
};
89
92
You can’t perform that action at this time.
0 commit comments