From eb1a83d907dd51528956945f05ac969ec94316ea Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 3 May 2021 13:15:33 -0400 Subject: [PATCH] [ox/model] Add isVector_v --- deps/ox/src/ox/model/types.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/model/types.hpp b/deps/ox/src/ox/model/types.hpp index 57e7ab7b..0dee14bf 100644 --- a/deps/ox/src/ox/model/types.hpp +++ b/deps/ox/src/ox/model/types.hpp @@ -25,7 +25,7 @@ namespace ox { template -constexpr bool isVector(const T&) noexcept { +constexpr bool isVector(const T*) noexcept { return false; } @@ -48,6 +48,9 @@ constexpr bool isVector(const QVector*) noexcept { } #endif +template +constexpr bool isVector_v = isVector(static_cast(nullptr)); + class SerStr { protected: