From 937cf21f43028697d2b9f09c1cf017d40ddbd40a Mon Sep 17 00:00:00 2001 From: Griswald Brooks Date: Sun, 8 Sep 2024 23:57:21 +0000 Subject: [PATCH] Remove extraneous layout policy --- src/map.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index 5035990..6b3e42e 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -210,23 +210,6 @@ double degrees_to_radians(double degrees) { return degrees * std::numbers::pi / } // namespace geometry -struct bounds_checked_layout_policy { - template - struct mapping : std::layout_right::mapping { - using base_t = std::layout_right::mapping; - using base_t::base_t; - std::ptrdiff_t operator()(auto... idxs) const { - [&](std::index_sequence) { - if (((idxs < 0 || idxs > this->extents().extent(Is)) || ...)) { - throw std::out_of_range("Invalid bin index"); - } - } - (std::make_index_sequence{}); - return this->base_t::operator()(idxs...); - } - }; -}; - struct layout_rotatable { template requires(Extents::rank() == 2) struct mapping {