mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Allow open_libraries() to accept any value category.
This commit is contained in:
parent
e82af463c1
commit
670ea9b405
|
@ -112,7 +112,7 @@ namespace sol {
|
|||
|
||||
template <typename... Args>
|
||||
void open_libraries(Args&&... args) {
|
||||
static_assert(meta::all_same<lib, Args...>::value, "all types must be libraries");
|
||||
static_assert(meta::all_same<lib, meta::unqualified_t<Args>...>::value, "all types must be libraries");
|
||||
if constexpr (sizeof...(args) == 0) {
|
||||
luaL_openlibs(L);
|
||||
return;
|
||||
|
|
|
@ -24338,7 +24338,7 @@ namespace sol {
|
|||
|
||||
template <typename... Args>
|
||||
void open_libraries(Args&&... args) {
|
||||
static_assert(meta::all_same<lib, Args...>::value, "all types must be libraries");
|
||||
static_assert(meta::all_same<lib, meta::unqualified_t<Args>...>::value, "all types must be libraries");
|
||||
if constexpr (sizeof...(args) == 0) {
|
||||
luaL_openlibs(L);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user