Skip to content

Commit dbbfb2a

Browse files
Fixed compilation issue g++ 4.9
1 parent 2e3b234 commit dbbfb2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CXX = /usr/bin/c++
22
CXX ?= g++
33

4-
CXXFLAGS = -O3 -g -fmessage-length=0 -Wall -march=native
4+
CXXFLAGS = -O3 -g -fmessage-length=0 -Wall -march=native -std=c++11
55

66
#
77
# Objects

src/cluster/src/Trainer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ std::tuple<Point<T>*,double,size_t,size_t> Trainer<T>::get_close(Point<T> *p, bv
4242
std::tuple<Point<T>*,
4343
double,
4444
size_t,
45-
size_t> result = {NULL,
45+
size_t> result = std::tuple<Point<T>*, double, size_t, size_t>(NULL,
4646
-1,
4747
0,
48-
0};
48+
0);
4949
bool has_found = false;
5050

5151
#ifdef DEBUG

0 commit comments

Comments
 (0)