mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
typename on the right side
This commit is contained in:
parent
fd52cc1aa9
commit
964f8e19cd
|
@ -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 2018-06-15 19:54:27.149295 UTC
|
// Generated 2018-06-15 19:59:17.486340 UTC
|
||||||
// This header was generated with sol v2.20.2 (revision 92f3330)
|
// This header was generated with sol v2.20.2 (revision fd52cc1)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -6264,7 +6264,7 @@ namespace sol {
|
||||||
|
|
||||||
template <typename U, typename Base, typename... Args>
|
template <typename U, typename Base, typename... Args>
|
||||||
static bool type_unique_cast_bases(void* source_data, void* target_data, const string_view& ti) {
|
static bool type_unique_cast_bases(void* source_data, void* target_data, const string_view& ti) {
|
||||||
typedef unique_usertype_traits<U>::typename rebind_base<Base> base_ptr;
|
typedef typename unique_usertype_traits<U>::rebind_base<Base> base_ptr;
|
||||||
string_view base_ti = usertype_traits<Base>::qualified_name();
|
string_view base_ti = usertype_traits<Base>::qualified_name();
|
||||||
if (base_ti == ti) {
|
if (base_ti == ti) {
|
||||||
if (target_data != nullptr) {
|
if (target_data != nullptr) {
|
||||||
|
@ -6280,7 +6280,7 @@ namespace sol {
|
||||||
|
|
||||||
template <typename U>
|
template <typename U>
|
||||||
static bool type_unique_cast(void* source_data, void* target_data, const string_view& ti, const string_view& rebind_ti) {
|
static bool type_unique_cast(void* source_data, void* target_data, const string_view& ti, const string_view& rebind_ti) {
|
||||||
typedef unique_usertype_traits<U>::typename rebind_base<void> rebind_t;
|
typedef typename unique_usertype_traits<U>::rebind_base<void> rebind_t;
|
||||||
string_view this_rebind_ti = usertype_traits<rebind_t>::qualified_name();
|
string_view this_rebind_ti = usertype_traits<rebind_t>::qualified_name();
|
||||||
if (rebind_ti != this_rebind_ti) {
|
if (rebind_ti != this_rebind_ti) {
|
||||||
// this is not even of the same container type
|
// this is not even of the same container type
|
||||||
|
|
|
@ -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 2018-06-15 19:54:27.490289 UTC
|
// Generated 2018-06-15 19:59:17.969682 UTC
|
||||||
// This header was generated with sol v2.20.2 (revision 92f3330)
|
// This header was generated with sol v2.20.2 (revision fd52cc1)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace sol {
|
||||||
|
|
||||||
template <typename U, typename Base, typename... Args>
|
template <typename U, typename Base, typename... Args>
|
||||||
static bool type_unique_cast_bases(void* source_data, void* target_data, const string_view& ti) {
|
static bool type_unique_cast_bases(void* source_data, void* target_data, const string_view& ti) {
|
||||||
typedef unique_usertype_traits<U>::typename rebind_base<Base> base_ptr;
|
typedef typename unique_usertype_traits<U>::rebind_base<Base> base_ptr;
|
||||||
string_view base_ti = usertype_traits<Base>::qualified_name();
|
string_view base_ti = usertype_traits<Base>::qualified_name();
|
||||||
if (base_ti == ti) {
|
if (base_ti == ti) {
|
||||||
if (target_data != nullptr) {
|
if (target_data != nullptr) {
|
||||||
|
@ -119,7 +119,7 @@ namespace sol {
|
||||||
|
|
||||||
template <typename U>
|
template <typename U>
|
||||||
static bool type_unique_cast(void* source_data, void* target_data, const string_view& ti, const string_view& rebind_ti) {
|
static bool type_unique_cast(void* source_data, void* target_data, const string_view& ti, const string_view& rebind_ti) {
|
||||||
typedef unique_usertype_traits<U>::typename rebind_base<void> rebind_t;
|
typedef typename unique_usertype_traits<U>::rebind_base<void> rebind_t;
|
||||||
string_view this_rebind_ti = usertype_traits<rebind_t>::qualified_name();
|
string_view this_rebind_ti = usertype_traits<rebind_t>::qualified_name();
|
||||||
if (rebind_ti != this_rebind_ti) {
|
if (rebind_ti != this_rebind_ti) {
|
||||||
// this is not even of the same container type
|
// this is not even of the same container type
|
||||||
|
|
Loading…
Reference in New Issue
Block a user