From 41d6cc50b9eede13870a942c3aee78d7647295fd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 2 Aug 2018 17:49:49 +0200 Subject: [PATCH] Remove the rather pointless enable_if tests for now. And move to C++14. --- Makefile | 2 +- flow.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d82637e..7ae9a5c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CXX=g++ PKG_MODULES := Qt5Core Qt5Gui Qt5Widgets Qt5OpenGLExtensions Qt5OpenGL Qt5PrintSupport libjpeg movit CXXFLAGS ?= -O2 -g -Wall # Will be overridden by environment. -CXXFLAGS += -std=gnu++11 -fPIC $(shell pkg-config --cflags $(PKG_MODULES)) -DMOVIT_SHADER_DIR=\"$(shell pkg-config --variable=shaderdir movit)\" -pthread +CXXFLAGS += -fPIC $(shell pkg-config --cflags $(PKG_MODULES)) -DMOVIT_SHADER_DIR=\"$(shell pkg-config --variable=shaderdir movit)\" -pthread LDLIBS=$(shell pkg-config --libs $(PKG_MODULES)) -pthread -lavformat -lavcodec -lavutil -lswscale -lGL diff --git a/flow.cpp b/flow.cpp index bb0c096..438cd83 100644 --- a/flow.cpp +++ b/flow.cpp @@ -268,19 +268,19 @@ public: void render_to(const array &textures); // Convenience wrappers. - void render_to(GLuint texture0, enable_if * = nullptr) { + void render_to(GLuint texture0) { render_to({{texture0}}); } - void render_to(GLuint texture0, GLuint texture1, enable_if * = nullptr) { + void render_to(GLuint texture0, GLuint texture1) { render_to({{texture0, texture1}}); } - void render_to(GLuint texture0, GLuint texture1, GLuint texture2, enable_if * = nullptr) { + void render_to(GLuint texture0, GLuint texture1, GLuint texture2) { render_to({{texture0, texture1, texture2}}); } - void render_to(GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3, enable_if * = nullptr) { + void render_to(GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3) { render_to({{texture0, texture1, texture2, texture3}}); } -- 2.39.2