Skip to content

Broken example? #6

@jsimmons

Description

@jsimmons

If I'm not mistaken the sample http://jakobovrum.github.com/LuaCpp/config_8cpp-example.html is technically broken.

const char* bar;
c.bar = t["bar"];

This will invoke the char * conversion which does not imply a copy, and since there's no copy the data is liable to be removed depending on what happens in the Lua state.

Noted without testing or even looking at the latest version of your code so bleah.

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