C++ Actor Framework v0.18.2 Release Notes
Release Date: 2021-03-26 // over 2 years ago-
โ Added
- CAF includes two new inspector types for consuming and generating
JSON-formatted text:
json_writer
andjson_reader
.
๐ Changed
- Setter functions for fields may now return either
bool
,caf::error
orvoid
. Previously, CAF only allowedbool
.
๐ Fixed
- Passing a getter and setter pair to an inspector via
apply
produced a compiler error for non-builtin types. The inspection API now recursively inspects user-defined types instead, as was the original intend (#1216). - The handle type
typed_actor
now can construct from atyped_actor_pointer
. This resolves a compiler error when trying to initialize a handle formy_handle
from a self pointer of typemy_handle::pointer_view
(#1218). - Passing a function reference to the constructor of an actor caused a compiler
error when building with logging enabled. CAF now properly handles this edge
case and logs such constructor arguments as
<unprintable>
(#1229). - ๐ The CLI parser did not recognize metrics filters. Hence, passing
--caf.metrics-filters.actors.includes=...
to a CAF application resulted in an error. Theincludes
andexcludes
filters are now consistently handled and accepted in config files as well as on the command line (#1238). - ๐ Silence a deprecated-enum-conversion warning for
std::byte
(#1230). - ๐ Fix heap-use-after-free when accessing the meta objects table in applications
that leave the
main
function while the actor system and its worker threads are still running (#1241). - โ
The testing DSL now properly accounts for the message prioritization of actors
(suspending regular behavior until receiving the response) when using
request.await
(#1232).
- CAF includes two new inspector types for consuming and generating
JSON-formatted text: