• Dominik Charousset's avatar
    Add config_value adaptors for complex user types · 66a00503
    Dominik Charousset authored
    The recently added config_value_object_access makes it simple to add
    custom types where each field maps naturally to a key/value entry.
    However, not each type fits that model. For example, a custom duration
    type might internally store only a single integer but use two key/value
    entries in the config: a count and the resolution.
    
    The new config_value_adaptor API enables such mappings by converting
    between the user-defined type and a tuple that models the representation
    in configuration files or on the CLI.
    66a00503
all.hpp 14 KB