From 89a46a8cd15f1d775079c557d6a9019347e233cc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 28 Oct 2023 10:03:55 +0200 Subject: [PATCH] more constexpr fixes --- locations.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/locations.cpp b/locations.cpp index f07a2a52..f3b88a93 100644 --- a/locations.cpp +++ b/locations.cpp @@ -198,10 +198,10 @@ template void tailored_delete(T* x) { delete[] ((char*) (x)); } -static constexpr struct wstep_t {} wstep; -static constexpr struct wmirror_t {} wmirror; -static constexpr struct rev_t {} rev; -static constexpr struct revstep_t {} revstep; +static constexpr struct wstep_t {} wstep = {}; +static constexpr struct wmirror_t {} wmirror = {}; +static constexpr struct rev_t {} rev = {}; +static constexpr struct revstep_t {} revstep = {}; extern int hrand(int); @@ -453,7 +453,7 @@ struct celllister : manual_celllister { }; /** \brief translate heptspins to cellwalkers and vice versa */ -static constexpr struct cth_t {} cth; +static constexpr struct cth_t {} cth = {}; inline heptspin operator+ (cellwalker cw, cth_t) { return heptspin(cw.at->master, cw.spin * DUALMUL, cw.mirrored); } inline cellwalker operator+ (heptspin hs, cth_t) { return cellwalker(hs.at->c7, hs.spin / DUALMUL, hs.mirrored); }