last rebind_base usge to be covered by if_constexpr

This commit is contained in:
ThePhD 2019-04-13 04:52:20 -04:00
parent 6282ed4bf0
commit 3adac3402f
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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