ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.06k stars 492 forks source link

compilation issue: no member named 'construct' #1611

Open hsdk123 opened 2 weeks ago

hsdk123 commented 2 weeks ago

Hi, I'm seeing a new error in compilation:

In file included from D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/sol.hpp:53:
In file included from D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/stack.hpp:27:
In file included from D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/trampoline.hpp:27:
In file included from D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/types.hpp:28:
In file included from D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/optional.hpp:33:

D:/a/Light.vn-core/Light.vn-core/_deps/sol2/80081c33f3d3c0bc53deb21b682463e1ae98eef5/include\sol/optional_implementation.hpp:2191:10: error: no member named 'construct' in 'optional<type-parameter-0-0 &>'

 2191 |                         this->construct(std::forward<Args>(args)...);

      |                         ~~~~  ^

1 error generated.

compiler: CMAKE_C_COMPILER: D:/a/Light.vn-core/Light.vn-core/emsdk/upstream/emscripten/emcc.bat

-- The CXX compiler identification is Clang 19.0.0
-- The C compiler identification is Clang 19.0.0