Skip to content

Style: Use qualified auto in C++ code #565

Description

@arcondello

We obviously use pointers types a lot in the C++ code. For example we do

auto x_ptr = graph.emplace_node<BinaryNode>();

IMO we should be using qualified auto in these places

auto* x_ptr = graph.emplace_node<BinaryNode>();

for readability.

Obviously there is a semantic difference if later we need to do say decltype(auto) but in most places we never inspect the auto and the latter conveys more meaning.

See

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested or further design needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions