From 37e7d24066bd59c51263b1e045dab1ada4ea4769 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 1 Feb 2016 15:15:13 -0500 Subject: C++11 me voilĂ ! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- stratified_sampling.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2ffcd8f..c412ee3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CXX=g++ CC=gcc RM = rm -CXXFLAGS=-O3 +CXXFLAGS=-std=c++11 -O3 GSL_FLAGS:=$(shell pkg-config --libs gsl) stratified_sampling: rtnorm.o stratified_sampling.o diff --git a/stratified_sampling.cpp b/stratified_sampling.cpp index 22bdbf5..f6c3ff1 100644 --- a/stratified_sampling.cpp +++ b/stratified_sampling.cpp @@ -26,9 +26,9 @@ double quantile_truncate_normal (int i, int n, double mu, std::pair mean_var( std::vector r){ std::pair p; - for(int i=0; i