mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
Similarly to the with_cob functions, this one takes the exn_cob function and ensures it is called in case of an exception. This is useful when the return type of the thrift verb is not nothrow move constructible; by holding on to the cob inside the verb and calling it directly when we have the result we avoid having to wrap it in a smart pointer. Signed-off-by: Duarte Nunes <duarte@scylladb.com>