Skip to content

The Dictionary type concern #274

@yhmtsai

Description

@yhmtsai

Currently, NeoFOAM use std::any to store the value of map, which can be anything.
It might be easy to store but will be hard to read.
It is raised in #272
We need to dispatch all type (which can be anything now) to give certain behavior based on the type.
for integer type, it has dispatched int but unsigned int, but users have ability to insert int64, long long, unsigned long long, or etc.
Should we limit the supported type in Dictionary? we do not need to change std::any but maybe use exception or static_assert (if prefer compiling warning) to limit the supported type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions