These are chat archives for ChaiScript/ChaiScript

13th
Apr 2015
Victor Lopez
@VictorJL
Apr 13 2015 03:51
@lefticus My function returns an std::vector<std::string> but when I receive the parameter with var content := get_content() and try to use content.size() it does not recognize the function.
Victor Lopez
@VictorJL
Apr 13 2015 03:57
I'll need to fix some errors due to massive allocation made by the compiler by using the header-only approach, after that I'll get back with what I did to tackle the issue.
Jason Turner
@lefticus
Apr 13 2015 12:38
@VictorJL it looks like you didn't tell ChaiScript anything about the std::vector<std::string> type, the easiest way is to do: chai->add(standard_library::vector_type<std::vector<std::string> >("StringVector")) like we do here for the std::vector<Boxed_Value> type https://github.com/ChaiScript/ChaiScript/blob/66801349a899896e2b1496679db4310ea7b8cff6/include/chaiscript/chaiscript_stdlib.hpp#L43.