fixed the deprecated-copy warning

This commit is contained in:
Zeno Rogue 2019-06-24 12:04:24 +02:00
parent c3e749ee57
commit fc32d46df2
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ struct lwalker {
int spin;
lwalker(crystal_structure& cs) : cs(cs) {}
void operator = (const lwalker& x) { id = x.id; spin = x.spin; }
constexpr lwalker(const lwalker& l) : cs(l.cs), id(l.id), spin(l.spin) {}
};
lwalker operator +(lwalker a, int v) { a.spin = gmod(a.spin + v, a.cs.dir); return a; }