Skip to content

Commit

Permalink
Fix compile errors on msys2 gcc 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Brzozowski committed Jul 27, 2017
1 parent 9d03d42 commit 66c31bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile-win
Expand Up @@ -2,7 +2,7 @@

CC = g++
LD = g++
CFLAGS = -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wl,--stack,16000000
CFLAGS = -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-strict-aliasing -Wl,--stack,16000000

ifdef DATA_DIR
CFLAGS += -DDATA_DIR=\"$(DATA_DIR)\"
Expand Down
2 changes: 1 addition & 1 deletion extern/variant.h
Expand Up @@ -402,7 +402,7 @@ class EnumT {

bool operator == (const Self& other) const {
return tag == other.tag && visit([&](const auto& o1) {
return other.getReferenceMaybe<
return other.template getReferenceMaybe<
typename std::remove_const<typename std::remove_reference<decltype(o1)>::type>::type>() == o1; } );
}

Expand Down
4 changes: 2 additions & 2 deletions my_containers.h
Expand Up @@ -314,12 +314,12 @@ class vector {
return *this;
}

Iterator operator++(int) const {
Iterator operator++(int) {
checkParent();
return Iterator(it++, parent);
}

Iterator operator--(int) const {
Iterator operator--(int) {
checkParent();
return Iterator(it--, parent);
}
Expand Down
1 change: 1 addition & 0 deletions stdafx.h
Expand Up @@ -40,6 +40,7 @@
#include <iostream>
#include <fstream>
#include <algorithm>
#include <functional>
#include <sstream>
#include <string>
#include <cstdlib>
Expand Down

0 comments on commit 66c31bf

Please sign in to comment.