From d7cb0b1bd24b6bbeb9c71629bd8576bb9eb6c6a7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 12 Oct 2019 14:04:46 +0200 Subject: [PATCH] fixed some compiler issues --- crystal.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crystal.cpp b/crystal.cpp index 99479ad6..2c63102f 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -361,7 +361,7 @@ int fiftyrule(coord c) { bool is_bi(crystal_structure& cs, coord co); #if MAXMDIM >= 4 -using shifttable = array; +typedef array shifttable; shifttable get_canonical(coord co) { shifttable res; @@ -380,7 +380,7 @@ shifttable get_canonical(coord co) { #endif struct hrmap_crystal : hrmap_standard { - heptagon *getOrigin() { return get_heptagon_at(c0, S7); } + heptagon *getOrigin() override { return get_heptagon_at(c0, S7); } map hcoords; map heptagon_at; @@ -463,11 +463,11 @@ struct hrmap_crystal : hrmap_standard { void build_east(int cid); - void verify() { } + void verify() override { } void prepare_east(); - heptagon *create_step(heptagon *h, int d) { + heptagon *create_step(heptagon *h, int d) override { if(!hcoords.count(h)) { printf("not found\n"); return NULL;