Skip to content

RAII and tail call optimization (TCO) #478

@lcarlier

Description

@lcarlier

Channel

C++ weekly

Topics

I have noticed that when using RAII the compiler isn't able to issue tail call optimization
https://godbolt.org/z/WbP63ETE9

It would be interesting to explain the reason why and that if that's true that RAII has actually that cost or if we can prevent it.

Before this exercise I was not even aware of TCO so that could also be part of the episode

Length

Should be rather short.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions