We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac7349 commit 0f68852Copy full SHA for 0f68852
include/oup/observable_unique_ptr.hpp
@@ -361,6 +361,8 @@ class observable_unique_ptr_base {
361
/** \param ptr A `nullptr_t` instance
362
*/
363
void reset(std::nullptr_t ptr = nullptr) noexcept {
364
+ static_cast<void>(ptr); // silence "unused variable" warnings
365
+
366
if (ptr_deleter.data) {
367
delete_and_pop_ref_();
368
block = nullptr;
0 commit comments