Skip to content

It is not possible to implement multiplication between a double type and a Value type, as well as compound operations like std::shared_ptr<Value> value1_2 = value1 + (value2 * 3.0); #2

@ghost-s

Description

@ghost-s

more details are following:
std::shared_ptr value1 = std::make_shared(2.5);
std::shared_ptr value2 = std::make_shared(3.7);
std::shared_ptr value3 = std::make_shared(-3.0);
std::shared_ptr value4 = std::make_shared(1.7);

// Perform addition using the operator+
std::shared_ptr<Value> value1_2 = value1 + (value2 * 3.0);   # error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions