mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #653 from OrfeasZ/vc140-fixes
Fix vc140 compilation issues
This commit is contained in:
commit
b9e96bd2ea
|
@ -319,7 +319,7 @@ namespace sol {
|
|||
struct user {
|
||||
U value;
|
||||
|
||||
user(U x)
|
||||
user(U&& x)
|
||||
: value(std::forward<U>(x)) {
|
||||
}
|
||||
operator std::add_pointer_t<std::remove_reference_t<U>>() {
|
||||
|
|
|
@ -36,14 +36,14 @@
|
|||
#endif // SOL_DEFAULT_PASS_ON_ERROR
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
#ifdef TEST_SINGLE
|
||||
#include <sol_forward.hpp>
|
||||
#endif // Single
|
||||
#include <sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
struct test_stack_guard {
|
||||
lua_State* L;
|
||||
int& begintop;
|
||||
|
|
|
@ -310,7 +310,7 @@ struct alignas(16) weird_aligned_wrapper {
|
|||
}
|
||||
void operator()(SelfType& self, sol::object param) const {
|
||||
lambda(self, param.as<float>());
|
||||
}
|
||||
}
|
||||
std::function<void(SelfType&, float)> lambda;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user