mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
now we start making a half-dozen commits trying to appease the various forms of clang++ and g++
This commit is contained in:
parent
eb1560d12a
commit
e0f6b636f1
|
@ -17,7 +17,7 @@ public:
|
|||
|
||||
// automatically bound to obj( args... ) [ __call ]
|
||||
void operator()() {
|
||||
data.push_back(static_cast<double>(data.size() + 1) / 3.0);
|
||||
data.push_back(static_cast<value_type>(data.size() + 1) / 3.0);
|
||||
}
|
||||
|
||||
// automatically used for pairs(obj) [ __pairs ], 5.2+
|
||||
|
|
3435
single/sol/sol.hpp
3435
single/sol/sol.hpp
File diff suppressed because it is too large
Load Diff
|
@ -101,6 +101,8 @@ namespace sol {
|
|||
template <typename T>
|
||||
struct as_table_t;
|
||||
template <typename T>
|
||||
struct as_container_t;
|
||||
template <typename T>
|
||||
struct nested;
|
||||
template <typename T>
|
||||
struct light;
|
||||
|
|
|
@ -332,9 +332,6 @@ namespace sol {
|
|||
(void)detail::swallow{ 0,
|
||||
(add(L, detail::forward_get<I * 2>(args), detail::forward_get<I * 2 + 1>(args)),0)...
|
||||
};
|
||||
std::array<luaL_Reg, 29> regs{};
|
||||
int index = 0;
|
||||
|
||||
}
|
||||
|
||||
template<typename... Args>
|
||||
|
@ -430,6 +427,8 @@ namespace sol {
|
|||
case meta_function::new_index:
|
||||
umx.newindexfunc = second;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -201,7 +201,7 @@ TEST_CASE("operators/container-like", "test that generic begin/end and iterator
|
|||
typedef int* iterator;
|
||||
typedef int value_type;
|
||||
|
||||
int values[10];
|
||||
value_type values[10];
|
||||
|
||||
container() {
|
||||
std::iota(begin(), end(), 1);
|
||||
|
|
|
@ -331,7 +331,7 @@ TEST_CASE("state/script, do, and load", "test success and failure cases for load
|
|||
const static std::string good = "a = 21\nreturn a";
|
||||
static const char file_good[] = "./temp.good.lua";
|
||||
static std::once_flag flag_file_bs = {}, flag_file_br = {}, flag_file_g = {};
|
||||
static std::atomic<int> finished = 0;
|
||||
static std::atomic<int> finished(0);
|
||||
std::call_once(flag_file_bs, write_file_attempt_object(), file_bad_syntax, bad_syntax);
|
||||
std::call_once(flag_file_br, write_file_attempt_object(), file_bad_runtime, bad_runtime);
|
||||
std::call_once(flag_file_g, write_file_attempt_object(), file_good, good);
|
||||
|
|
Loading…
Reference in New Issue
Block a user