mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
last rebind_base usge to be covered by if_constexpr
This commit is contained in:
parent
6282ed4bf0
commit
3adac3402f
|
@ -36,8 +36,8 @@ namespace stack {
|
|||
if constexpr (!std::is_reference_v<X> && is_unique_usertype_v<X>) {
|
||||
using u_traits = unique_usertype_traits<meta::unqualified_t<X>>;
|
||||
using T = typename u_traits::type;
|
||||
using rebind_t = typename u_traits::template rebind_base<void>;
|
||||
if constexpr (!std::is_void_v<rebind_t>) {
|
||||
if constexpr (!is_base_rebindable_non_void_v<u_traits>) {
|
||||
using rebind_t = typename u_traits::template rebind_base<void>;
|
||||
// we have a unique pointer type that can be
|
||||
// rebound to a base/derived type
|
||||
const type indextype = type_of(L, index);
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2019-04-13 08:04:51.418277 UTC
|
||||
// This header was generated with sol v3.0.1-beta2 (revision d17f967)
|
||||
// Generated 2019-04-13 08:51:54.424585 UTC
|
||||
// This header was generated with sol v3.0.1-beta2 (revision 6282ed4)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2019-04-13 08:04:48.327520 UTC
|
||||
// This header was generated with sol v3.0.1-beta2 (revision d17f967)
|
||||
// Generated 2019-04-13 08:51:53.095601 UTC
|
||||
// This header was generated with sol v3.0.1-beta2 (revision 6282ed4)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -11075,8 +11075,8 @@ namespace stack {
|
|||
if constexpr (!std::is_reference_v<X> && is_unique_usertype_v<X>) {
|
||||
using u_traits = unique_usertype_traits<meta::unqualified_t<X>>;
|
||||
using T = typename u_traits::type;
|
||||
using rebind_t = typename u_traits::template rebind_base<void>;
|
||||
if constexpr (!std::is_void_v<rebind_t>) {
|
||||
if constexpr (!is_base_rebindable_non_void_v<u_traits>) {
|
||||
using rebind_t = typename u_traits::template rebind_base<void>;
|
||||
// we have a unique pointer type that can be
|
||||
// rebound to a base/derived type
|
||||
const type indextype = type_of(L, index);
|
||||
|
|
Loading…
Reference in New Issue
Block a user