From 2e6646935b6b12844d349aadf5ae77555d730b50 Mon Sep 17 00:00:00 2001 From: choladay Date: Thu, 8 May 2025 14:11:59 -0700 Subject: [PATCH 1/2] Safe to assume c++11 is available --- lib/nmatrix/mkmf.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/nmatrix/mkmf.rb b/lib/nmatrix/mkmf.rb index 7178fae0..47c6fae1 100644 --- a/lib/nmatrix/mkmf.rb +++ b/lib/nmatrix/mkmf.rb @@ -81,15 +81,7 @@ def gplusplus_version if CONFIG['CXX'] == 'clang++' $CXX_STANDARD = 'c++11' else - version = gplusplus_version - if version < '4.3.0' && CONFIG['CXX'] == 'g++' # see if we can find a newer G++, unless it's been overridden by user - if !find_newer_gplusplus - raise("You need a version of g++ which supports -std=c++0x or -std=c++11. If you're on a Mac and using Homebrew, we recommend using mac-brew-gcc.sh to install a more recent g++.") - end - version = gplusplus_version - end - - if version < '4.7.0' + if gplusplus_version < '4.7.0' $CXX_STANDARD = 'c++0x' else $CXX_STANDARD = 'c++11' From c9b2a76a57affd6d47d76e7dbc36dd0910eb5d73 Mon Sep 17 00:00:00 2001 From: choladay Date: Thu, 8 May 2025 14:13:03 -0700 Subject: [PATCH 2/2] s --- lib/nmatrix/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nmatrix/version.rb b/lib/nmatrix/version.rb index 146df200..295a339a 100644 --- a/lib/nmatrix/version.rb +++ b/lib/nmatrix/version.rb @@ -29,7 +29,7 @@ class NMatrix module VERSION #:nodoc: MAJOR = 0 MINOR = 2 - TINY = 5 + TINY = 6 #PRE = "a" STRING = [MAJOR, MINOR, TINY].compact.join(".")