1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix pertition_point for gcc5.x

This commit is contained in:
bolero-MURAKAMI 2017-08-06 10:09:03 +09:00
parent 74d7368aa5
commit 08f2556030
3 changed files with 12 additions and 5 deletions

View file

@ -35,8 +35,8 @@ Supported Compilers
Linux:
* GCC, C++11/14 mode: 4.7.0~4.7.4, 4.8.0~4.8.5, 4.9.0~4.9.3, 5.1.0, 5.2.0, 5.3.0
* Clang, C++11/14 mode: 3.2, 3.3, 3.4~3.4.2, 3.5.0~3.5.1, 3.6.0~3.6.2, 3.7.0~3.7.1
* GCC, C++11/14/17(1z) mode: 4.7.0~4.7.4, 4.8.0~4.8.5, 4.9.0~4.9.4, 5.1.0~5.4.0, 6.1.0~6.4.0, 7.1.0
* Clang, C++11/14/17(1z) mode: 3.2, 3.3, 3.4~3.4.2, 3.5.0~3.5.1, 3.6.0~3.6.2, 3.7.0~3.7.1, 3.8.0~3.8.1, 3.9.0~3.9.1, 4.0.0~4.0.1
*******************************************************************************
Author

View file

@ -17,7 +17,7 @@
#include <sprout/iterator/operation.hpp>
namespace sprout {
#if defined(SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR) || SPROUT_GCC_IN_RANGE((5, 1, 0), (5, 1, 1))
#if defined(SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR) || SPROUT_GCC_IN_RANGE((5, 1, 0), (6, 0, 0))
namespace detail {
template<typename ForwardIterator, typename Predicate>
inline SPROUT_CONSTEXPR ForwardIterator

View file

@ -48,8 +48,12 @@ get_std_option() {
if [ "${1}" = "gcc" ]; then
if [ "${vn}" -lt "480" ]; then
echo -n "-std=c++11"
else
elif [ "${vn}" -lt "510" ]; then
echo -n "-std=c++1y"
elif [ "${vn}" -lt "610" ]; then
echo -n "-std=c++14"
else
echo -n "-std=c++1z"
fi
elif [ "${1}" = "clang" ]; then
if [ "${vn}" -lt "32" ]; then
@ -64,8 +68,10 @@ get_std_option() {
if [ "${1}" = "gcc" ]; then
if [ "${vn}" -lt "480" ]; then
echo -n "-std=c++11"
else
elif [ "${vn}" -lt "510" ]; then
echo -n "-std=c++1y"
else
echo -n "-std=c++14"
fi
elif [ "${1}" = "clang" ]; then
if [ "${vn}" -lt "32" ]; then
@ -133,6 +139,7 @@ if [ ${use_help} -ne 0 ]; then
echo " Default; '/usr/local'"
echo ""
echo " --std=<c++XX> Standard C++ version."
echo " c++11, c++14, or c++17."
echo " Default; 'c++11'"
echo ""
echo " -O, --option=<opt> Add compile option."