Struct containing std::string being passed to lua
snippet in lua

Struct containing std::string being passed to lua

user7846

%module example
%include "std_string.i"

%apply const std::string& {std::string* foo};

struct my_struct
{
  std::string foo;
};