Fix catch-value warning
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Dec 2025 09:10:07 +0000 (10:10 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 31 Dec 2025 11:11:25 +0000 (12:11 +0100)
commit8bbcf80b35f73fe849dd2e958cf22c9d84f01b01
tree24a2031859a46f068bf1b81dc392781b8615a994
parentd869e551b645a1a0ca5bc1dc5a18abb347994d0e
Fix catch-value warning

Original warning:
src/pointer_func.hpp:74:27: error: catching polymorphic type 'class boost::bad_weak_ptr' by value [-Werror=catch-value=]

Changed both catch statements to catch by reference (const&) instead of by value.
src/pointer_func.hpp