From c7a52750a8b6ed3247fe8dae47bd3a51f4bb99a1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 25 Apr 2021 19:53:38 +0100 Subject: Remove ArrayLike --- lib/persistance.cpp | 7 ------- lib/persistance.h | 3 --- 2 files changed, 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::ArrayLike); - static_assert(!SelectionT::ArrayLike); - static_assert(!SelectionT::ArrayLike); - static_assert(SelectionT>::ArrayLike); - static_assert(SelectionT::ArrayLike); - static_assert(SelectionT>::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>(std::ref(v[idx++]))); } - static constexpr bool ArrayLike {true}; glm::vec & v; glm::length_t idx {0}; }; @@ -106,7 +104,6 @@ namespace Persistanace { stk.push(std::make_unique>(std::ref(v.emplace_back()))); } - static constexpr bool ArrayLike {true}; std::vector & v; }; -- cgit v1.2.3