Chromium Code Reviews| Index: util/stdlib/string_number_conversion.cc |
| diff --git a/util/stdlib/string_number_conversion.cc b/util/stdlib/string_number_conversion.cc |
| index a7c7d519dedfb22bb9332af7685325919fdea42b..62b4d3fd2f4b406ffb11ea7ad5b83b0f858342d3 100644 |
| --- a/util/stdlib/string_number_conversion.cc |
| +++ b/util/stdlib/string_number_conversion.cc |
| @@ -29,7 +29,7 @@ |
| // the std::numeric_limits<>::min() and max() functions will not be marked as |
| // constexpr, and thus won’t be usable with C++11’s static_assert(). In that |
| // case, a run-time CHECK() will have to do. |
| -#if CXX_LIBRARY_VERSION >= 2011 |
| +#if CXX_LIBRARY_VERSION >= 2011 && CXX_HAS_CONSTEXPR |
|
Mark Mentovai
2014/12/15 23:51:56
The way that we’re using this here, it should actu
scottmg
2014/12/15 23:54:48
Done.
|
| #define CONSTEXPR_STATIC_ASSERT(condition, message) \ |
| static_assert(condition, message) |
| #else |