[ox/model] Add isVector_v

This commit is contained in:
Gary Talent 2021-05-03 13:15:33 -04:00
parent 704b94f471
commit eb1a83d907

View File

@ -25,7 +25,7 @@
namespace ox {
template<typename T>
constexpr bool isVector(const T&) noexcept {
constexpr bool isVector(const T*) noexcept {
return false;
}
@ -48,6 +48,9 @@ constexpr bool isVector(const QVector<T>*) noexcept {
}
#endif
template<typename T>
constexpr bool isVector_v = isVector(static_cast<const T*>(nullptr));
class SerStr {
protected: