mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix #838 by defining the operators to prevent VS warning
This commit is contained in:
parent
eb5c442eec
commit
5799084572
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user