Skip to content

Commit

Permalink
Fixes for g++-6
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsmirnov committed Mar 25, 2017
1 parent 6d2b968 commit 439d9f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions generic_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class GenericGraph {

// v: edge number
// returns: edge number
int edgeOtherEnd(int v, int edgeId);
int edgeOtherEnd(int v, int edgeId) const;

void permuteEdges(const Array& order);

Expand Down Expand Up @@ -196,7 +196,7 @@ void GenericGraph::addEdgeUnsafe(int u, int v) {
}
}

int GenericGraph::edgeOtherEnd(int v, int edgeId) {
int GenericGraph::edgeOtherEnd(int v, int edgeId) const {
ENSURE(edgeId < numEdges_);
const auto& edge = edges_[edgeId];
if (edge.first == v) {
Expand Down
6 changes: 3 additions & 3 deletions jngen.h
Original file line number Diff line number Diff line change
Expand Up @@ -2914,7 +2914,7 @@ class VariantImpl<Size, T, Args...> : public VariantImpl<
{
using Base = VariantImpl<(sizeof(T) > Size ? sizeof(T) : Size), Args...>;

constexpr static size_t MY_ID = sizeof...(Args);
constexpr static int MY_ID = sizeof...(Args);

protected:
void doDestroy() {
Expand Down Expand Up @@ -3323,7 +3323,7 @@ class GenericGraph {

// v: edge number
// returns: edge number
int edgeOtherEnd(int v, int edgeId);
int edgeOtherEnd(int v, int edgeId) const;

void permuteEdges(const Array& order);

Expand Down Expand Up @@ -3410,7 +3410,7 @@ void GenericGraph::addEdgeUnsafe(int u, int v) {
}
}

int GenericGraph::edgeOtherEnd(int v, int edgeId) {
int GenericGraph::edgeOtherEnd(int v, int edgeId) const {
ENSURE(edgeId < numEdges_);
const auto& edge = edges_[edgeId];
if (edge.first == v) {
Expand Down
2 changes: 1 addition & 1 deletion variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class VariantImpl<Size, T, Args...> : public VariantImpl<
{
using Base = VariantImpl<(sizeof(T) > Size ? sizeof(T) : Size), Args...>;

constexpr static size_t MY_ID = sizeof...(Args);
constexpr static int MY_ID = sizeof...(Args);

protected:
void doDestroy() {
Expand Down

0 comments on commit 439d9f2

Please sign in to comment.