[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 {
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user