Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
ee93512d
Commit
ee93512d
authored
Dec 27, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document recent changes
parent
9dbfba7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
CHANGELOG.md
CHANGELOG.md
+21
-3
No files found.
CHANGELOG.md
View file @
ee93512d
...
...
@@ -16,6 +16,18 @@ is based on [Keep a Changelog](https://keepachangelog.com).
and
`caf.middleman.serialization-time`
.
-
The macro
`CAF_ADD_TYPE_ID`
now accepts an optional third parameter for
allowing users to override the default type name.
-
The new function pair
`get_as`
and
`get_or`
model type conversions on a
`config_value`
. For example,
`get_as<int>(x)`
would convert the content of
`x`
to an
`int`
by either casting numeric values to
`int`
(with bound checks) or
trying to parse the input of
`x`
if it contains a string. The function
`get_or`
already existed for
`settings`
, but we have added new overloads for
generalizing the function to
`config_value`
as well.
### Deprecated
-
The new
`get_as`
and
`get_or`
function pair makes type conversions on a
`config_value`
via
`get`
,
`get_if`
, etc. obsolete. We will retain the
STL-style interface for treating a
`config_value`
as a
`variant`
-like type.
### Changed
...
...
@@ -23,9 +35,15 @@ is based on [Keep a Changelog](https://keepachangelog.com).
i.e.,
`caf-application.conf`
.
-
Simplify the type inspection API by removing the distinction between
`apply_object`
and
`apply_value`
. Instead, inspectors only offer
`apply`
and
users may now also call
`map`
,
`list`
,
`tuple`
and
`value`
for unboxing simple
wrapper types. Furthermore, CAF no longer automatically serializes enumeration
types using their underlying value because this is fundamentally unsafe.
users may now also call
`map`
,
`list`
, and
`tuple`
for unboxing simple wrapper
types. Furthermore, CAF no longer automatically serializes enumeration types
using their underlying value because this is fundamentally unsafe.
-
CAF no longer parses the input to string options on the command line. For
example,
`my_app '--msg="hello"'`
results in CAF storing
`"hello"`
(including
the quotes) for the config option
`msg`
. Previously, CAF tried to parse any
string input on the command-line that starts with quotes in the same way it
would parse strings from a config file, leading to very unintuitive results in
some cases (#1113).
### Fixed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment