diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-11-15 11:10:42 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-11-15 11:10:42 -0500 |
commit | 1c71a8e78e37d8605e009d623a5281ab4b509350 (patch) | |
tree | 3a5bb723d42d86f79433e3afb49e2cc47c582d92 /indra | |
parent | d427d5dbfa09f0bdec743e75a41e8ea0ee4abeea (diff) |
SL-20546: Even with C++17 CTAD, makeClassicCallback() still useful.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llcommon/classic_callback.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/llcommon/classic_callback.h b/indra/llcommon/classic_callback.h index 1ad6dbc58f..009c25d67c 100644 --- a/indra/llcommon/classic_callback.h +++ b/indra/llcommon/classic_callback.h @@ -119,11 +119,11 @@ public: * ClassicCallback must not itself be copied or moved! Once you've passed * get_userdata() to some API, this object MUST remain at that address. */ - // However, we can't yet count on C++17 Class Template Argument Deduction, - // which means makeClassicCallback() is still useful, which means we MUST - // be able to return one to construct into caller's instance (move ctor). - // Possible defense: bool 'referenced' data member set by get_userdata(), - // with an llassert_always(! referenced) check in the move constructor. + // However, makeClassicCallback() is useful for deducing the CALLABLE + // type, which means we MUST be able to return one to construct into + // caller's instance (move ctor). Possible defense: bool 'referenced' data + // member set by get_userdata(), with an llassert_always(! referenced) + // check in the move constructor. ClassicCallback(ClassicCallback const&) = delete; ClassicCallback(ClassicCallback&&) = default; // delete; ClassicCallback& operator=(ClassicCallback const&) = delete; |