Allow open_libraries() to accept any value category.

This commit is contained in:
espkk 2020-04-09 01:19:53 +03:00 committed by The Phantom Derpstorm
parent e82af463c1
commit 670ea9b405
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;