summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-04-25 19:53:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commitc7a52750a8b6ed3247fe8dae47bd3a51f4bb99a1 (patch)
treed121b5b091f2339e92373c228a14a0e2ec8df218 /lib
parentSupport chaining persist calls for subclasses (diff)
downloadilt-c7a52750a8b6ed3247fe8dae47bd3a51f4bb99a1.tar.bz2
ilt-c7a52750a8b6ed3247fe8dae47bd3a51f4bb99a1.tar.xz
ilt-c7a52750a8b6ed3247fe8dae47bd3a51f4bb99a1.zip
Remove ArrayLike
Diffstat (limited to 'lib')
-rw-r--r--lib/persistance.cpp7
-rw-r--r--lib/persistance.h3
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/persistance.cpp b/lib/persistance.cpp
index bdcbe9f..c21a6b1 100644
--- a/lib/persistance.cpp
+++ b/lib/persistance.cpp
@@ -69,11 +69,4 @@ namespace Persistanace {
Selection::EndObject(Stack &)
{
}
-
- static_assert(!SelectionT<float>::ArrayLike);
- static_assert(!SelectionT<bool>::ArrayLike);
- static_assert(!SelectionT<std::string>::ArrayLike);
- static_assert(SelectionT<std::vector<float>>::ArrayLike);
- static_assert(SelectionT<glm::vec3>::ArrayLike);
- static_assert(SelectionT<std::vector<glm::vec3>>::ArrayLike);
}
diff --git a/lib/persistance.h b/lib/persistance.h
index 0082d4c..8e38250 100644
--- a/lib/persistance.h
+++ b/lib/persistance.h
@@ -52,7 +52,6 @@ namespace Persistanace {
std::swap(v, evalue);
}
- static constexpr bool ArrayLike {false};
T & v;
};
@@ -86,7 +85,6 @@ namespace Persistanace {
stk.push(std::make_unique<SelectionT<T>>(std::ref(v[idx++])));
}
- static constexpr bool ArrayLike {true};
glm::vec<L, T, Q> & v;
glm::length_t idx {0};
};
@@ -106,7 +104,6 @@ namespace Persistanace {
stk.push(std::make_unique<SelectionT<T>>(std::ref(v.emplace_back())));
}
- static constexpr bool ArrayLike {true};
std::vector<T> & v;
};