@@ -83,14 +83,14 @@ namespace sigc
83
83
struct SIGC_API scoped_connection final
84
84
{
85
85
/* * Constructs an empty scoped connection object. */
86
- [[nodiscard]] scoped_connection() noexcept = default ;
86
+ scoped_connection () noexcept = default ;
87
87
88
88
/* * Constructs a scoped connection object from an unscoped connection object.
89
89
* The source connection still refers to the slot and can manually disconnect.
90
90
* @param c The connection object to make a copy from, whose slot weʼll
91
91
* automatically disconnect when the scoped_connection object is destroyed.
92
92
*/
93
- [[nodiscard]] scoped_connection(connection c) noexcept ;
93
+ scoped_connection (connection c) noexcept ;
94
94
95
95
/* * Overrides this scoped connection object copying an unscoped connection.
96
96
* The current slot, if any, will be disconnect()ed before being replaced.
@@ -127,17 +127,17 @@ struct SIGC_API scoped_connection final
127
127
/* * Returns whether the connection is still active.
128
128
* @return @p false if the connection is still active.
129
129
*/
130
- [[nodiscard]] bool empty () const noexcept ;
130
+ bool empty () const noexcept ;
131
131
132
132
/* * Returns whether the connection is still active.
133
133
* @return @p true if the connection is still active.
134
134
*/
135
- [[nodiscard]] bool connected () const noexcept ;
135
+ bool connected () const noexcept ;
136
136
137
137
/* * Returns whether the connection is blocked.
138
138
* @return @p true if the connection is blocked.
139
139
*/
140
- [[nodiscard]] bool blocked () const noexcept ;
140
+ bool blocked () const noexcept ;
141
141
142
142
/* * Sets or unsets the blocking state of this connection.
143
143
* See slot_base::block() for details.
@@ -157,13 +157,13 @@ struct SIGC_API scoped_connection final
157
157
/* * Returns whether the connection is still active.
158
158
* @return @p true if the connection is still active.
159
159
*/
160
- [[nodiscard]] explicit operator bool () const noexcept ;
160
+ explicit operator bool () const noexcept ;
161
161
162
162
/* * Releases the connection from a scoped connection object.
163
163
* The scoped connection will no longer refer to / disconnect the slot.
164
164
* @return An unscoped connection object referring to the same slot.
165
165
*/
166
- [[nodiscard]] connection release () noexcept ;
166
+ connection release () noexcept ;
167
167
168
168
private:
169
169
sigc::connection conn_;
0 commit comments