Commit 5ca05218 authored by matthijs's avatar matthijs

move to C++11

parent 3ba41afe
...@@ -27,9 +27,9 @@ class FaissException : public std::exception { ...@@ -27,9 +27,9 @@ class FaissException : public std::exception {
int line); int line);
/// from std::exception /// from std::exception
virtual const char* what() const _GLIBCXX_USE_NOEXCEPT const char* what() const noexcept override
{ return msg.c_str(); } { return msg.c_str(); }
virtual ~FaissException () _GLIBCXX_USE_NOEXCEPT {} ~FaissException () noexcept override {}
std::string msg; std::string msg;
}; };
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
CC=g++ CC=g++
CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -Dnullptr=NULL -Doverride= -fopenmp CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -std=c++11 -fopenmp
LDFLAGS=-g -fPIC -fopenmp LDFLAGS=-g -fPIC -fopenmp
# common linux flags # common linux flags
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Tested on macOS Sierra (10.12.2) with llvm installed using Homebrew (https://brew.sh) # Tested on macOS Sierra (10.12.2) with llvm installed using Homebrew (https://brew.sh)
# brew install llvm # brew install llvm
CC=/usr/local/opt/llvm/bin/clang++ CC=/usr/local/opt/llvm/bin/clang++
CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -Dnullptr=NULL -I/usr/local/opt/llvm/include -Doverride= CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -Dnullptr=NULL -I/usr/local/opt/llvm/include -std=c++11
LDFLAGS=-g -fPIC -fopenmp -L/usr/local/opt/llvm/lib LDFLAGS=-g -fPIC -fopenmp -L/usr/local/opt/llvm/lib
# common mac flags # common mac flags
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# port install g++-mp-6 # port install g++-mp-6
CC=/opt/local/bin/g++-mp-6 CC=/opt/local/bin/g++-mp-6
CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -Doverride= CFLAGS=-fPIC -m64 -Wall -g -O3 -msse4 -mpopcnt -fopenmp -Wno-sign-compare -std=c++11
LDFLAGS=-g -fPIC -fopenmp LDFLAGS=-g -fPIC -fopenmp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment