more constexpr fixes
This commit is contained in:
parent
a50a87f095
commit
89a46a8cd1
|
@ -198,10 +198,10 @@ template<class T> void tailored_delete(T* x) {
|
||||||
delete[] ((char*) (x));
|
delete[] ((char*) (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr struct wstep_t {} wstep;
|
static constexpr struct wstep_t {} wstep = {};
|
||||||
static constexpr struct wmirror_t {} wmirror;
|
static constexpr struct wmirror_t {} wmirror = {};
|
||||||
static constexpr struct rev_t {} rev;
|
static constexpr struct rev_t {} rev = {};
|
||||||
static constexpr struct revstep_t {} revstep;
|
static constexpr struct revstep_t {} revstep = {};
|
||||||
|
|
||||||
extern int hrand(int);
|
extern int hrand(int);
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ struct celllister : manual_celllister {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** \brief translate heptspins to cellwalkers and vice versa */
|
/** \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 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); }
|
inline cellwalker operator+ (heptspin hs, cth_t) { return cellwalker(hs.at->c7, hs.spin / DUALMUL, hs.mirrored); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue