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.
For example:
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?
I think providing default parameter values is a very important feature.