Skip to content

reinterpret_cast and undefined behaviour #129

@lcarlier

Description

@lcarlier

Channel

C++Weekly

Topics

reinterpret_cast and undefined behaviour.
What is allowed and not allowed.
i.e. can we cast integer to pointer (e.g. for register access)? any risk doing so?
type aliasing.
Some example demonstrating what can go wrong when wrong type aliasing is done.

Length

5-10 minutes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions