File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
openFrameworksCompiled/project/makefileCommon Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ template<typename T>
7676class ofBaseImage_ : public ofAbstractImage , virtual public ofBaseHasPixels_<T>{
7777public:
7878 // / \brief Destroy the ofBaseImage_.
79- virtual ~ofBaseImage_<T> (){};
79+ virtual ~ofBaseImage_ (){};
8080};
8181
8282
@@ -439,7 +439,7 @@ class ofBaseGLRenderer: public ofBaseRenderer{
439439 // / \param material The material to bind to this renderer.
440440 // / \sa glMaterialfv()
441441 virtual void bind (const ofBaseMaterial & material)=0;
442-
442+
443443 virtual void bind (const ofShadow & shadow)=0;
444444 virtual void bind (const ofShadow & shadow, GLenum aCubeFace)=0;
445445
@@ -473,7 +473,7 @@ class ofBaseGLRenderer: public ofBaseRenderer{
473473 // /
474474 // / \param material The material that is currently bound to this renderer.
475475 virtual void unbind (const ofBaseMaterial & material)=0;
476-
476+
477477 virtual void unbind (const ofShadow & shadow)=0;
478478 virtual void unbind (const ofShadow & shadow, GLenum aCubeFace)=0;
479479
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ template<typename T>
257257class ofBaseHasPixels_ : public ofAbstractHasPixels {
258258public:
259259 // / \brief Destroy the ofAbstractHasPixels.
260- virtual ~ofBaseHasPixels_<T> (){}
260+ virtual ~ofBaseHasPixels_ (){}
261261
262262 // / \brief Get a reference to the underlying ofPixels.
263263 // / \returns a reference the underlying ofPixels.
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ PLATFORM_REQUIRED_ADDONS =
137137
138138PLATFORM_CXXFLAGS = -Wall -Werror=return-type
139139PLATFORM_CXXVER = -std=c++17
140-
140+
141141GCC_MAJOR := $(shell expr `gcc -dumpversion | cut -f1 -d.`)
142142GCC_MINOR := $(shell expr `gcc -dumpversion | cut -f2 -d.`)
143143
@@ -159,12 +159,17 @@ ifeq ("$(GCC_MAJOR)","4")
159159 endif
160160 endif
161161else
162- ifeq ($(shell expr $(GCC_MAJOR) \>= 8 ), 1)
163- # c++17 for gcc 8 and newer
164- PLATFORM_CXXVER = -std=c++17
162+ ifeq ($(shell expr $(GCC_MAJOR) \>= 10 ), 1)
163+ # c++20 for gcc 10 and newer
164+ PLATFORM_CXXVER = -std=c++20
165165 else
166- # c++14 for gcc 4 and newer
167- PLATFORM_CXXVER = -std=c++14
166+ ifeq ($(shell expr $(GCC_MAJOR) \>= 8), 1)
167+ # c++17 for gcc 8 and newer
168+ PLATFORM_CXXVER = -std=c++17
169+ else
170+ # c++14 for gcc 4 and newer
171+ PLATFORM_CXXVER = -std=c++14
172+ endif
168173 endif
169174 PLATFORM_CXXFLAGS += -DGCC_HAS_REGEX
170175endif
You can’t perform that action at this time.
0 commit comments