Skip to content

Use modern C++ casts instead of current C-style casting approaches #250

@bmourit

Description

@bmourit

Description

Update various API implementations that use c-style pointer casting and other c-style approaches to use modern C++ casts.

Is this a breaking change?

The function signatures would remain unchanged
The behavior of the functions would be identical
User code that calls these functions wouldn't need any modifications

Additional information

Modernizes the code base. Compilers will optimize these the same, but coding standards favor using C++ cast in C++ code.

Activity

changed the title [-]Modernize some C++ code[/-] [+]Use modern C++ casts instead of current C-style casting approaches[/+] on Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bmourit

        Issue actions

          Use modern C++ casts instead of current C-style casting approaches · Issue #250 · arduino/ArduinoCore-API