Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofDragInfo issue #7916

Open
Jonathhhan opened this issue Apr 21, 2024 · 2 comments
Open

ofDragInfo issue #7916

Jonathhhan opened this issue Apr 21, 2024 · 2 comments

Comments

@Jonathhhan
Copy link
Contributor

Jonathhhan commented Apr 21, 2024

I have an error with ofDragInfo when I try to make Lua bindings in ofxLua:

No operand found that accepts an operand of type std::vector<std::string,std::allocator<std::string>> on the right.

If I replace of::filesystem::path with std::string at line 111 in ofEvents.h it works (maybe better to replace std::string with of::filesystem::path instead?):

//-----------------------------------------------
class ofDragInfo {
public:
	std::vector<of::filesystem::path> files;
	glm::vec2 position;
};
//-----------------------------------------------
class ofDragInfo {
public:
	std::vector<std::string> files;
	glm::vec2 position;
};
@dimitre
Copy link
Member

dimitre commented May 1, 2024

I would try to edit ofxLua bindings, maybe something like this:

      SWIG_fail_ptr("DragInfo_files_set",2,SWIGTYPE_p_std__vectorT_std__string_t); }  if (arg1) (arg1)->files = *arg2;
    return SWIG_arg; fail: SWIGUNUSED; }  lua_error(L); return 0; }

@dimitre
Copy link
Member

dimitre commented May 1, 2024

cc @danomatika

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants