forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config/property: template set_value to allow conversion to T
a properly typed set_value(std::constructible_from<T, U> U) helps when T is std::optional<V> and V can be constructed from U. for example, property<optional<ms>>.set_value(1h). before this change, this would throw a bad_any_cast. derived classes needs to pull this in via using property::set_value, and will receive a std::any via the overriding set_value(std::any), like before. retention_property needed to be adjusted for this (not clear if it was buggy before) (cherry picked from commit aa768ef)
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters