Fixed quite a few bugs, including makeing find template functions check for trait subset, not trait equality, and add the number required to the satisfied count. Based on what is now breaking, it looks like it's time to give the builtin functions types.
This commit is contained in:
@@ -56,7 +56,7 @@ template <T> void delete(T* toDelete, int itemCount) {
|
||||
}
|
||||
|
||||
template <T(Destructable)> void delete(T* toDelete, int itemCount) {
|
||||
for (int i = 0; i < itemDestructCount; i++;)
|
||||
for (int i = 0; i < itemCount; i++;)
|
||||
toDelete[i].destruct();
|
||||
delete<T>(toDelete);
|
||||
}
|
||||
@@ -67,7 +67,6 @@ template <T> void delete(T* toDelete) {
|
||||
}
|
||||
|
||||
template <T(Destructable)> void delete(T* toDelete) {
|
||||
if (destruct)
|
||||
toDelete->destruct();
|
||||
toDelete->destruct();
|
||||
free(toDelete);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user