These are chat archives for ChaiScript/ChaiScript

Jun 2017
Jerry Smith
Jun 11 2017 06:17
I don't think I need to ask that question any longer but I do have a question about Chaiscript again.
{chaiscript::fun<std::shared_ptr<GameData>, SaveManager, const std::string>(&SaveManager::Load), "Load"}
how might I change this to take in a const method?
IE std::shared_ptr<GameData> SaveManager::Load(const std::string filename) const
Jason Turner
Jun 11 2017 12:50
The syntax looks off, but I think you mean you'd want this: {chaiscript::fun<std::shared_ptr<GameData> (const SaveManager &, const std::string &)>(&SaveManager::Load), "Load"}