Replaced testing on G++ 5.1 with G++ 5.2.

GCC 5.2 is a "bugfix" release over GCC 5.1 - not sure why the GCC team
updated the minor version number. Package managers seem to have dropped
GCC 5.1 and replaced it with 5.2, and I'm guessing usage of 5.1 is
discouraged. The testing code has been updated accordingly.

Travis is still distributing GCC 5.1 as of the time of this writing.
This commit is contained in:
Anton Bachin 2015-08-23 11:50:24 -05:00
parent 0595a526e7
commit 977f8ef145
5 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
Better Enums aims to support all major compilers. It is known to work on: Better Enums aims to support all major compilers. It is known to work on:
- clang 3.3 to 3.6 - clang 3.3 to 3.6
- gcc 4.3 to 5.1 - gcc 4.3 to 5.2
- Visual C++ 2008 to 2015RC. - Visual C++ 2008 to 2015RC.
The library can be used with any compiler that supports either $cxx11, or $cxx98 The library can be used with any compiler that supports either $cxx11, or $cxx98
@ -91,10 +91,10 @@ clang++34 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION
clang++34 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING clang++34 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING
clang++34 -std=c++98 clang++34 -std=c++98
clang++33 -std=c++98 clang++33 -std=c++98
g++51 -std=c++11 g++52 -std=c++11
g++51 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION g++52 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION
g++51 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING g++52 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING
g++51 -std=c++98 g++52 -std=c++98
g++49 -std=c++11 g++49 -std=c++11
g++49 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION g++49 -std=c++11 -DBETTER_ENUMS_STRICT_CONVERSION
g++49 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING g++49 -std=c++11 -DBETTER_ENUMS_CONSTEXPR_TO_STRING

View File

@ -38,7 +38,7 @@ We will create a map from this function:
case <em>Channel::Blue</em>: return <em>"the blue channel"</em>; case <em>Channel::Blue</em>: return <em>"the blue channel"</em>;
} }
return "needed for gcc 5.1"; return "needed for gcc 5";
} }
Here is the map. The actual type is `better_enums::map<Channel, const char*>`. Here is the map. The actual type is `better_enums::map<Channel, const char*>`.

View File

@ -132,7 +132,7 @@ int main()
// U is for declarations only. // U is for declarations only.
// //
// Constructors in initializers require C++11. Also, g++ doesn't support this // Constructors in initializers require C++11. Also, g++ doesn't support this
// before 5.1. // before g++5.
// //
// Letting the compiler enumerate your type // Letting the compiler enumerate your type
// //

View File

@ -40,7 +40,7 @@ constexpr const char* describe(Channel channel)
case Channel::Blue: return "the blue channel"; case Channel::Blue: return "the blue channel";
} }
return "for gcc 5.1"; return "needed for gcc 5";
} }
// Here is the map. The actual type is better_enums::map<Channel, const char*>. // Here is the map. The actual type is better_enums::map<Channel, const char*>.

View File

@ -135,7 +135,7 @@ all-configurations :
.PHONY : all-unix .PHONY : all-unix
all-unix : examples all-unix : examples
make COMPILER=clang++36 unix make COMPILER=clang++36 unix
make COMPILER=g++51 unix make COMPILER=g++52 unix
make COMPILER=g++46 unix make COMPILER=g++46 unix
make COMPILER=g++47 unix make COMPILER=g++47 unix
make COMPILER=g++43 unix make COMPILER=g++43 unix