Skip to content

Commit fa03a14

Browse files
committed
typed_slot_rep: Make constructor explicit.
1 parent e72e5f8 commit fa03a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigc++/functors/slot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct typed_slot_rep : public slot_rep
5555
* The notification callback is registered using visit_each().
5656
* @param functor The functor contained by the new slot_rep object.
5757
*/
58-
inline typed_slot_rep(const T_functor& functor)
58+
inline explicit typed_slot_rep(const T_functor& functor)
5959
: slot_rep(nullptr, &destroy, &dup), functor_(functor)
6060
{
6161
sigc::visit_each_trackable(slot_do_bind(this), functor_);

0 commit comments

Comments
 (0)