[ox/model] Add isVector_v
This commit is contained in:
parent
704b94f471
commit
eb1a83d907
5
deps/ox/src/ox/model/types.hpp
vendored
5
deps/ox/src/ox/model/types.hpp
vendored
@ -25,7 +25,7 @@
|
|||||||
namespace ox {
|
namespace ox {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
constexpr bool isVector(const T&) noexcept {
|
constexpr bool isVector(const T*) noexcept {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +48,9 @@ constexpr bool isVector(const QVector<T>*) noexcept {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
constexpr bool isVector_v = isVector(static_cast<const T*>(nullptr));
|
||||||
|
|
||||||
class SerStr {
|
class SerStr {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user