Skip to content

How to register std::span? #235

@Lveyou

Description

@Lveyou

For example:

using BufferView = std::span<std::byte>; 

uint32_t HashCrc32(BufferView buf, uint32_t crc = 0)
{
     ...
}

It would be great if std::span were supported by default.

Additionally, I also tried using default parameters in functions; this should be how they are used, right?

addFunction("HashCrc32", luabridge::bind_back(&HashCrc32, 0))

I think providing default parameter values is a very important feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions