sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

Results 286 sol2 issues
Sort by recently updated
recently updated
newest added

Here's a thing that recently bit me. https://sol2.readthedocs.io/en/latest/functions.html#functions-and-argument-passing says the following about function argument passing: > All arguments are forwarded. Unlike [get/set/operator[] on sol::state](https://sol2.readthedocs.io/en/latest/api/state.html) or [sol::table](https://sol2.readthedocs.io/en/latest/api/table.html), value semantics are not...

I'm including Sol2 in my project using FetchContent in CMake. I have Lua installed on my system, both through Homebrew (`brew install lua`) and from source code (`make install` in...

Class: ```c++ template struct Test { T x; }; template using OtherTest = Test; ``` Binding: ```c++ auto bindTest = [this] (const std::string& name) { this->state.new_usertype (name, "x", &C1::x); };...

I was trying to dump all the User defined functions, variables and types. This following program get struck in endless loop. ``` #include #include template void helper(const T &table, int...

include/sol/stack_check_unqualified.hpp:585:75: Warning Unused Variable 'indextype' Very minor error, but when compiling with extra error flags (-Wall -Wextra -Werror) reveals an unused variable error at line 585. Seemed to fix it...

https://opencv.org/ I want to use sol2 to bind the opencv library. But I don't know how to implement it? For example, reading and binarizing images. ``` cv::Mat src = cv::imread("demo.png",...

I'd love to use this repo with [homebrew](https://brew.sh/) so Maybe a lastest tag with `git tag -a` is better

Thanks for this great library! Sorry if the question doesn't make any sense, I just don't know how to explain it in a sentence. Let's say I have a table...

Consider: [this thread](https://stackoverflow.com/questions/71632098/why-is-stdis-copy-constructible-vstdvectormoveonlytype-true) And this example: ```C++ struct NonCopyable { NonCopyable() = default; ~NonCopyable() {} private: std::unique_ptr value; }; template struct Wrapper { Wrapper() = default; Wrapper(const Wrapper&) = default;...

Currently the comparison traits are using: `supports_op_less_test` -> `void_t` `supports_op_equal_test` -> `void_t` `supports_op_less_equal_test` -> `void_t