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 {
|
struct user {
|
||||||
U value;
|
U value;
|
||||||
|
|
||||||
user(U x)
|
user(U&& x)
|
||||||
: value(std::forward<U>(x)) {
|
: value(std::forward<U>(x)) {
|
||||||
}
|
}
|
||||||
operator std::add_pointer_t<std::remove_reference_t<U>>() {
|
operator std::add_pointer_t<std::remove_reference_t<U>>() {
|
||||||
|
|
|
@ -36,14 +36,14 @@
|
||||||
#endif // SOL_DEFAULT_PASS_ON_ERROR
|
#endif // SOL_DEFAULT_PASS_ON_ERROR
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
#ifdef TEST_SINGLE
|
#ifdef TEST_SINGLE
|
||||||
#include <sol_forward.hpp>
|
#include <sol_forward.hpp>
|
||||||
#endif // Single
|
#endif // Single
|
||||||
#include <sol.hpp>
|
#include <sol.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
struct test_stack_guard {
|
struct test_stack_guard {
|
||||||
lua_State* L;
|
lua_State* L;
|
||||||
int& begintop;
|
int& begintop;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user