Fix #838 by defining the operators to prevent VS warning

This commit is contained in:
ThePhD 2019-07-25 22:14:24 -04:00
parent eb5c442eec
commit 5799084572
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 8 additions and 8 deletions

View File

@ -283,7 +283,7 @@ namespace sol {
std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value
&& std::is_destructible<unqualified_t<T>>::value>> { && std::is_destructible<unqualified_t<T>>::value>> {
struct F { struct F {
void operator()(); void operator()() {};
}; };
struct Derived : T, F {}; struct Derived : T, F {};
template <typename U, U> template <typename U, U>
@ -303,7 +303,7 @@ namespace sol {
std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value
&& !std::is_destructible<unqualified_t<T>>::value>> { && !std::is_destructible<unqualified_t<T>>::value>> {
struct F { struct F {
void operator()(); void operator()() {};
}; };
struct Derived : T, F { struct Derived : T, F {
~Derived() = delete; ~Derived() = delete;

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2019-07-05 02:52:15.860848 UTC // Generated 2019-07-26 02:13:25.323566 UTC
// This header was generated with sol v3.0.3 (revision fd4ba95) // This header was generated with sol v3.0.3 (revision eb5c442)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2019-07-05 02:52:13.070165 UTC // Generated 2019-07-26 02:13:25.052030 UTC
// This header was generated with sol v3.0.3 (revision fd4ba95) // This header was generated with sol v3.0.3 (revision eb5c442)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -1653,7 +1653,7 @@ namespace sol {
std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value
&& std::is_destructible<unqualified_t<T>>::value>> { && std::is_destructible<unqualified_t<T>>::value>> {
struct F { struct F {
void operator()(); void operator()() {};
}; };
struct Derived : T, F {}; struct Derived : T, F {};
template <typename U, U> template <typename U, U>
@ -1673,7 +1673,7 @@ namespace sol {
std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value std::enable_if_t<!std::is_final<unqualified_t<T>>::value && std::is_class<unqualified_t<T>>::value
&& !std::is_destructible<unqualified_t<T>>::value>> { && !std::is_destructible<unqualified_t<T>>::value>> {
struct F { struct F {
void operator()(); void operator()() {};
}; };
struct Derived : T, F { struct Derived : T, F {
~Derived() = delete; ~Derived() = delete;