Skip to content

Commit 210a171

Browse files
authored
Update Session.h
Add explanation that even `move` was not fully intentionally allowed for SessionHandle.
1 parent 2f8f991 commit 210a171

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transport/Session.h

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ class Session;
8484
*
8585
* To meet the requirements of "you should not store this", the Handle has additional restrictions
8686
* preventing modification (no assignment or copy constructor) and allows only move.
87+
* NOTE: `move` should likely also not be allowed, however we need to have the ability to
88+
* return such objects from method calls, so it is currently allowed.
8789
*
8890
*/
8991
class SessionHandle

0 commit comments

Comments
 (0)